-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18-Nov-2003/20:56 -0800, Dali Islam <ibmdali@xxxxxxxxx> wrote: >I have acron job that send mutt mail with attatchment. >I send this e-mail to 6 people and for each of them I >have separate line. How I can send e-mail to various >users by reading their e-mail address from file or >something like that? Assuming the recipient list in a file, one address per line, this should work: for recipient in $(ls /path/to/recipientlist.txt); do mutt -a /path/to/attachment -s "subject of message" $recipient < /dev/null; done >Can I have a process so that if the mail did not go >through it send the error message to the root user? That should happen automatically if the mail is sent from a system or root cronjob. In any case, the root user's mail should be aliased to an account used by a real person. Regularly logging in as root just to check mail is not a good idea. Add an alias to /etc/aliases like this: root: ibmdali@localhost >Can I send a copy of the e-mail to root? [I have >turned off the sendmail to receive outside e-mail] Just add root to the file that contains the recipient list. Tony - -- Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Cagreene@xxxxxxxxx%3E> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Anthony E. Greene <mailto:agreene@xxxxxxxxx> 0x6C94239D iD8DBQE/vXNXpCpg3WyUI50RAnxvAJ9mUpgBYV5V6hO1ZTbt1nDv7l5W7ACg0v/u L6SYbtsJ2ouJyohD4EMJGlY= =CUVc -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list