#!/bin/rc
# list/add - add addresses to upas patternfile
if(test $#* -lt 2){
echo >[1=2] usage: list/add list address ...
exit usage
}
patternfile=`{list/of $1} && shift
if(! ~ $status '')
exit $status
fn sigexit { rm -f /tmp/addressfile.$pid; exit $s }
for(address)
echo $address >>/tmp/addressfile.$pid
upas/list add $patternfile /tmp/addressfile.$pid
s=$status
|