home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!metro!quark!teslab!andrew
- From: andrew@teslab.lab.oz.au (Andrew Phillips)
- Newsgroups: comp.unix.admin
- Subject: Re: Help Needed: How to send mail to "everybody" at once
- Message-ID: <4473@teslab.lab.oz.au>
- Date: 21 Jul 92 23:35:40 GMT
- References: <1992Jul17.140319.23953@sdc.com>
- Organization: Technology Services, Chief Secretary's Dept, Sydney
- Lines: 13
-
- kenk@sdc.com (Ken Konecki) writes:
- : In article <1992Jul16.224234.13551@cco.caltech.edu> jafl@cco.caltech.edu (John Lindal) writes:
- : >Does anyone know how to send mail to everyone on a particular system
- : >without having to specify all the user names?
- :
- : mail `awk -F: '{ print $1 }' /etc/passwd`
-
- To just send to normal users (which is I think what was asked)
-
- mail `awk -F: '$3>199 && $3<10000 {print $1}' /etc/passwd`
-
- (The specific numbers may vary on some systems but on ours normal
- user numbers start at 200.)
-