Path: utzoo!attcan!uunet!cs.utexas.edu!mailrus!cornell!uw-beaver!ubc-cs!alberta!dvinci!news From: hovdesta@herald.usask.ca (Alfred Hovdestad) Newsgroups: comp.unix.questions Subject: Re: SEX! or, how do I mail to a lot of unix users? Message-ID: <1990Jun5.154401.8148@dvinci.usask.ca> Date: 5 Jun 90 15:44:01 GMT References: <900531083002.30e0d06c@Csa2.LBL.Gov> Sender: news@dvinci.usask.ca Reply-To: hovdesta@herald.usask.ca Organization: University of Saskatchewan Lines: 27 From article <900531083002.30e0d06c@Csa2.LBL.Gov>, by thermal%solgel.hepnet@CSA2.LBL.GOV: > I would like to be able to send a mail message to all the users on > a unix machine. Of course, I could do it the long way, that is, > do a 'finger' or 'who', thus getting a list of all the users, and > then sending a mail message to each, one at a time. Is there a > quicker way? (it seems to me there could be two or three different > ways, such as setting up a mailing list, or some nifty command that > will do this on one stroke of the finger). Obviously, I'm not a > unix guru or wizard, so make your explanation understandable, please. > > Thanks, Dana We use Ultrix here, but you can check your UNIX manuals for your system. In your .mailrc, you can define a user list for mailing a message to all on the list. The syntax is alias user_list name1 name2 name3 ... When mail is sent to the user_list, it is sent to all on the list. There is also a system wide alias file called /usr/lib/aliases that contains aliases that anyone on the system can use. +-----------------------------------------------------------------+ | Alfred Hovdestad | Internet: hovdestad@sask.usask.ca | | University of Saskatchewan | UUCP: hovdesta@dvinci.UUCP | | Canada | Voice: (306) 966-4828 | +-----------------------------------------------------------------+