---- Quoting [EMAIL PROTECTED]'s message, sent 06/27/00 11:51am ----

> this is not possible with 4000 users ? can i use this with bcc
> option ?

or we modify the line:

mail -s "All users" `awk -F: '$4 == <group_no> { print $1 }' \
        /etc/passwd` < /path/to/msg.txt

where <group_no> is the number of the user group you wish to send the
mail to =)
 
> thanks,
> dwen
> [e-liam] [EMAIL PROTECTED]
> [e-site] http://listen.to/gallagher
> 
>       "I've got to stop smiling, it gives the wrong  impression"
> 
> On Tue, 27 Jun 2000, A. M. Varon wrote:
> 
> > >   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.

-- 
francis vidal   university of st. la salle, bacolod city, philippines
. . . . . . .   PGP key available via e-mail / subject: get PGP key
u s l s N E T   tel nos. (+63.34).433.3526 / fax (+63.34).434.0415


-
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