[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     Re: Sendpage info?

I've been using it for a while without problems.  I've attached
the old script I used, which just dumped the whole message.  I've
now replaced it with one that reformats the message a bit (written
in perl).  Let me know if you want it.
								Frank
-----
#! /bin/sh

#exec /usr/contrib/bin/sendpage -l 0 -p frank
TMPFILE=/tmp/.page.$$
#cat - > $TMPFILE
grep -vw 'test' - > $TMPFILE
if [ -s $TMPFILE ]
then
    for pager in frank ian phil rjc ray
    do
	/usr/contrib/bin/sendpage -l 0 -p $pager < $TMPFILE
    done
fi
rm -f $TMPFILE

exit 0

-- 
Frank Crawford		Email:	frank@ansto.gov.au	Postal:	PMB 1
Site Systems Manager	Phone:	+61 2 9717 3015			Menai NSW 2234
ANSTO			Fax:	+61 2 9717 9273			Australia

PGP Fingerprint: (8BB1C821) 06 4F 35 82 1D D6 0E 56  9F AB B8 F7 67 AF 1A 9D