home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1668 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  1.0 KB

  1. From: jik@pit-manager.mit.edu (Jonathan I. Kamens)
  2. Newsgroups: news.misc,alt.sources
  3. Subject: Re: Processing KILL files in background.
  4. Message-ID: <1990Aug14.185107.11587@athena.mit.edu>
  5. Date: 14 Aug 90 21:50:31 GMT
  6.  
  7.  
  8. Well, I didn't write it, but here's a tool to do what you're asking.
  9.  
  10. Jonathan Kamens                          USnail:
  11. MIT Project Athena                11 Ashford Terrace
  12. jik@Athena.MIT.EDU                Allston, MA  02134
  13. Office: 617-253-8495                  Home: 617-782-0710
  14.  
  15.               *************************
  16.  
  17. #!/bin/sh
  18. # (if these # comments bother your system, strip them out)
  19. #
  20. # rnkill - shell script to apply rn KILL files in background
  21. # Jim Olsen  - 14 Mar 89 (olsen@XN.LL.MIT.EDU)
  22. #
  23. # Options: -d    debug mode.  You see all gory action as it happens.
  24.  
  25. # Visit all newsgroups (if rn asks about anything else, just say no)
  26. export RNMACRO RNINIT
  27. RNINIT='-s -T -t'
  28. RNMACRO=/tmp/rnkill$$
  29. trap 'rm -f $RNMACRO; exit' 1 2 3 15
  30. echo "z %(%m=n?.q^M:n)^(z^)" > $RNMACRO
  31. if test X$1 = X-d; then
  32.     echo "z" | rn
  33. else
  34.     echo "z" | rn >/dev/null 2>&1
  35. fi
  36. rm $RNMACRO
  37. exit 0
  38.