home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / CNEWS / _CNEWS.TAR / usr / lib / newsbin / relay / delsendsys < prev    next >
Encoding:
Text File  |  1994-09-02  |  864 b   |  23 lines

  1. #! /bin/sh
  2. # delsendsys - mail sys file to sender identified in stdin's headers
  3.  
  4. # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  5. . ${NEWSCONFIG-/var/lib/news/bin/config}
  6. export NEWSCTL NEWSBIN NEWSARTS
  7. PATH=$NEWSCTL/bin:$NEWSBIN/relay:$NEWSBIN:$NEWSPATH ; export PATH
  8. umask $NEWSUMASK
  9.  
  10. SENDER="`newsreply`"
  11. (echo "Subject: response from `newshostname` to your sendsys"; echo "";
  12. case "$1" in
  13. "")    cat $NEWSCTL/sys ;;
  14. *)    awk -f $NEWSBIN/relay/canonsys.awk $NEWSCTL/sys | egrep "^$1:" ;;
  15. esac ) | mail "$SENDER"
  16. echo "$NEWSCTL/sys file has been sent to $SENDER.
  17. Please remain calm.  DON'T PANIC.  This is perfectly routine.
  18. Your sys file is public information by definition.
  19. This is a requirement of membership in Usenet.
  20. Please don't waste everyone's time by asking about this on Usenet
  21. or by harassing the person who sent the sendsys control message." |
  22.     mail $NEWSMASTER
  23.