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

Re: [cobalt-users] Full User List



"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.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/