[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Full User List



On Tuesday 14 May 2002 10:34 pm, Steve Werby wrote:
> "William J.A. Brillinger" <billy@xxxxxxxxxx> wrote:
> > I have been searching the archive to no avail, for a way to easily send a
> > mail message to each mailbox on a Raq4.
> >
> > Is there a list of 'all mailboxes' on this thing somewhere?
> > Or an address like allusers@xxxxxxxxxxxxxxx?
>
> I'm writing this without testing, but it should work:
>
> #!/bin/sh
>
> for i in `cat /etc/passwd | cut -d ":" -f 1`
> do
>     mail -s "Subject Here" $i < /path_to/message_body
> done
>
> It'll loop through all users and email them the contents of the file as the
> body of the message.

It will also send the mail to these users

root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
httpd
nobody
pop
postgres
chiliasp

-- 
Gerald Waugh 
http://www.frontstreetnetworks.com :: Phone. [011] 203.785.0699
Front Street Networks LLC | SOHO Networks & Web Site Hosting
229 Front Street, Ste. #C, New Haven, CT, 06513-3203 United States