how to email!!
Kenneth Porter
shiva at sewingwitch.com
Tue Oct 4 00:49:36 UTC 2005
--On Monday, October 03, 2005 3:56 PM -0700 bruce <bedouglas at earthlink.net>
wrote:
> i need to know how to use the 'mail' command to simply send a test msg...
For use in a script:
echo "message body" | mail -s "subject line" recipient at example.com
I use this just before rebooting my server for hardware issues or a kernel
update:
uptime | mail -s "Reboot for new kernel (or whatever reason)" root
(root's mail is redirected via /etc/aliases to another account. This just
makes sure it goes to whoever's supposed to get it.)
I have a mail folder where I file all the reboot email so I can track when
and why the servers were rebooted.
More information about the fedora-list
mailing list