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

  1. #! /bin/sh
  2. # sendsys - arrange to 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. canonhdr >/tmp/ctl$$
  11. what="`egrep '^Message-ID:' /tmp/ctl$$ | awk '{print $2}'`"
  12. when="`getdate tomorrow`"
  13. echo "$when $what" >>$NEWSCTL/delayed
  14.  
  15. SENDER="`newsreply </tmp/ctl$$`"
  16. echo "$NEWSCTL/sys file will be sent to $SENDER shortly.
  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. rm -f /tmp/ctl$$
  24.