[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Full User List
- Subject: Re: [cobalt-users] Full User List
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Tue May 14 12:54:04 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"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/