If you want to send all users on one system , then you can use cut or awk Using cut, mail `cut -d : -f 1 /etc/passwd` <Message_file
Using Awk, mail `awk -F: '$3>499 {print $1}' /etc/passwd` <message_file User ID less than are pseudo users. So, we have to send mail to real user only. THen, I filter with '$3>499 {print $1'. Note:- You must use back quote in quoting. At 06:47 PM 7/18/03 -0500, you wrote: >On Fri, Jul 18, 2003 at 12:10:04PM -0700, YoloIts wrote: >> I am an admin and I would like to send an email to all my ISP customers on >> my mail server. How do I send a global email with send mail without adding >> all the addresses indenpently? > >You can't, but you can write an easy script to parse all the users in >/etc/passwd to send them e-mails. > >-- >Ed Wilts, Mounds View, MN, USA >mailto:[EMAIL PROTECTED] >Member #1, Red Hat Community Ambassador Program > > >-- >redhat-list mailing list >unsubscribe mailto:[EMAIL PROTECTED] >https://www.redhat.com/mailman/listinfo/redhat-list > > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list