[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Email as Root
- Subject: Re: [cobalt-users] Email as Root
- From: Fraser Campbell <fraser@xxxxxxxxxxx>
- Date: Mon Nov 27 13:14:00 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"George Ewing" <george@xxxxxxxxxxxx> writes:
> I would like to login as root on my raq3 and email all of my virtusers.
> Anyone know if there is a single email address on the raq that will
> allow me to do this?
Stick your message in a text file and:
for user in `cut -f1 -d: /etc/passwd`
do
cat message.txt |mail -s "Announcement to users of $HOSTNAME" $user
done
... or maybe not ;-)