>       How do i send mail to all users  ? 

No need to be complicated:

mail -s "To all lusers." `awk -F: '{print $1}' /etc/passwd` < mesg.txt

where the mesg.txt is a text file containing the body of your message. you
still have to contend with sending mail to non-users like bin, sys,
etc. which is a minor inconvinience. 

regards,

= ====== Andre M. Varon  - Technical Head
= =   == Lasaltech, Inc. - http://andre.lasaltech.com
= === =               
=   = =  If I cannot bend Heaven, I shall move Hell.
===== =           -- Publius Vergilius Maro (Virgil)




-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to