RE: how to email!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--On Monday, October 03, 2005 3:56 PM -0700 bruce <bedouglas@xxxxxxxxxxxxx> 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@xxxxxxxxxxx

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.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux