home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d473
/
cnewssrc
/
cnews_src.lzh
/
relay
/
ctl
/
sendsys
< prev
next >
Wrap
Text File
|
1990-01-11
|
583b
|
17 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 $NEWSMASTER