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

Re: [cobalt-users] Email as Root



"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 ;-)