home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.sources
- Path: sparky!uunet!pipex!warwick!dcs.warwick.ac.uk!rince
- From: rince@dcs.warwick.ac.uk (James Bonfield)
- Subject: Re: mwrite - write multiple users on your host, script in csh
- Message-ID: <1993Jan25.100106.7766@dcs.warwick.ac.uk>
- Sender: news@dcs.warwick.ac.uk (Network News)
- Nntp-Posting-Host: stone
- Organization: Department of Computer Science, Warwick University, England
- References: <1993Jan24.224248.3491@ousrvr.oulu.fi>
- Date: Mon, 25 Jan 1993 10:01:06 GMT
- Lines: 21
-
- In <1993Jan24.224248.3491@ousrvr.oulu.fi> yaz@phoenix.oulu.fi writes:
-
- > #!/bin/csh
- > # mwrite was written by yaz@phoenix.oulu.fi (Tuomas K Kaikkonen)
- > #
- > # Usage: mwrite username(s)
- > # Use Ctrl-D (EOF) to mark the end of the message.
- > #
- > # Usage2 example: cat file | mwrite username(s)
-
- If you're using rc there's a lovely way to do this :
-
- {cat | tee >{write user1} >{write user2} >{write user3} } > /dev/null
-
- Why can't other shells handle such lovely multiple tee style expressions?
-
- James
- --
- James Bonfield (jkb@mrc-lmba.cam.ac.uk / rince@dcs.warwick.ac.uk)
- Medical Research Council Laboratory of Molecular Biology, Hills Road,
- Cambridge, CB2 2QH, England. Tel: 0223 402499 Fax: 0223 412282
-