Sep 22, 2001 #1 bkonner MIS Apr 28, 2001 101 US Howdy, How can I send an email to all users on my email system (as root)? I am using Sendmail with RedHat 7.0. Thanks
Howdy, How can I send an email to all users on my email system (as root)? I am using Sendmail with RedHat 7.0. Thanks
Sep 22, 2001 #2 RhythmAce Technical User May 22, 2001 2,869 FR This link should answer you question: http://www.sendmail.org/faq/section4.html#4.21 Upvote 0 Downvote
Sep 22, 2001 #3 marsd IS-IT--Management Apr 25, 2001 2,218 US #!/bin/sh #mail_everyone all_names=$(cat /etc/passwd | awk ' BEGIN { FS = ":" } { print $1 }') for ii in `echo $all_names` do echo "My message" | mail $ii done Upvote 0 Downvote
#!/bin/sh #mail_everyone all_names=$(cat /etc/passwd | awk ' BEGIN { FS = ":" } { print $1 }') for ii in `echo $all_names` do echo "My message" | mail $ii done