home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
cnews.orig.lzh
/
relay
/
ctl
/
sendsys
< prev
next >
Wrap
Text File
|
1989-06-27
|
583b
|
18 lines
#! /bin/sh
# sendsys - mail sys file to sender identified in stdin's headers
# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/lib/news/bin/config}
export NEWSCTL NEWSBIN NEWSARTS
PATH=$NEWSCTL/bin:$NEWSBIN/relay:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK
SENDER="`newsreply`"
(echo "Subject: response from `newshostname` to your sendsys"; echo "";
case "$1" in
"") cat $NEWSCTL/sys ;;
*) awk -f $NEWSBIN/relay/canonsys.awk $NEWSCTL/sys | egrep "^$1:" ;;
esac ) | mail "$SENDER"
echo "$NEWSCTL/sys file has been sent to $SENDER. Remain calm." | mail $NEWSMA
TER