home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / sources / 3082 < prev    next >
Encoding:
Text File  |  1993-01-24  |  642 b   |  26 lines

  1. Newsgroups: alt.sources
  2. Path: sparky!uunet!mcsun!news.funet.fi!ousrvr.oulu.fi!phoenix!yaz
  3. From: yaz@phoenix.oulu.fi
  4. Subject: Re: mwrite - write multiple users on your host, script in csh
  5. Message-ID: <1993Jan24.224621.3881@ousrvr.oulu.fi>
  6. Lines: 14
  7. Sender: news@ousrvr.oulu.fi
  8. Organization: Phoenix Lab., University of Oulu, Finland
  9. X-Newsagent: :: uutimet -- news-agent by yaz@phoenix.oulu.fi ::
  10. Date: Sun, 24 Jan 1993 22:46:21 GMT
  11.  
  12. #!/bin/csh
  13.  
  14. set xpro="/tmp/`whoami`$$"
  15. cp /dev/null $xpro
  16. set xline=" "
  17. while (`echo -n "$xline" | wc -c`)
  18.     set xline="$<"
  19.     echo "$xline" >> $xpro
  20. end
  21. foreach xto (`echo $*`)
  22.     write $xto < $xpro
  23. end
  24. rm $xpro
  25.  
  26.