Path: utzoo!mnetor!motto!murray From: murray@motto.UUCP (Murray S. Kucherawy) Newsgroups: comp.unix.questions Subject: Re: SEX! or, how do I mail to a lot of unix users? Message-ID: <132@motto.UUCP> Date: 1 Jun 90 19:50:04 GMT References: <900531083002.30e0d06c@Csa2.LBL.Gov> Reply-To: murray@motto.UUCP (Murray S. Kucherawy) Organization: Communications Division, Motorola Ltd., Toronto, Canada Lines: 22 thermal%solgel.hepnet@CSA2.LBL.GOV.UUCP writes: >I would like to be able to send a mail message to all the users on >a unix machine... If you're lucky enough to have a system where each user has a directory someplace common (ie. /u/ for each user), then csh has a nice way of doing it: 1) Create the document you want to send 2) % foreach i (/u/*) ? mail -s "Memo for you" $i < source-file ? echo sent to $i ? end That oughta do it... =============================== Murray S. Kucherawy ========================== Motorola Canada, Ltd. Communications Division, Toronto [on work term] University of Waterloo, Ontario, Canada 2A Math (Comp Sci/Pure Math) Internet: murray@motto.UUCP (work) mskucherawy@watmath.UWaterloo.ca (UW) UUCP: uunet!utai!lsuc!motto!murray uunet!watmath!mskucherawy