dcox@ssd.kodak.com (Don Cox (253-7121)) (02/06/91)
System: Sun 4/260, SunOS4.0.3
Cnews w/nntp
When we use to run Bnews, we were given the option of adding a
recording to remind people not to post company information, etc.
As I read through the Pnews script, I find:
#: play recorded message
set X `$sed < $tmpart -n -e '/^Newsgroups: /{' -e p -e q -e '}'`
shift
case $# in
0|1)
;;
*)
shift
if $test -s ${lib}/recording ; then
ng=`$echo $1 | $sed "s/,.*//"`
_rec1=${lib}/`$sed -n "/^$ng/s/^.* //p" ${lib}/recording`
_tmp=`$echo $ng |$sed "s/\..*//"`
_rec2=${lib}/`$cat -s ${lib}/recording|$grep ${_tmp}.all|$sed "s/^.*
//"`
if $test -f ${_rec1} ; then
$cat -s ${_rec1}
fi
if $test -f ${_rec2} ; then
$cat -s ${_rec2}
fi
fi
;;
esac
I have the file /usr/local/lib/rn/recording present, but it is not
being read. Am I interpreting the script incorrectly, or is there
more to it than just having the recording file present?
Thanks.
--
Don Cox
Phone (716) 253-7121 KMX (716) 253-7998
INTERNET dcox@ssd.kodak.com