LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail Server Stats (https://www.linuxquestions.org/questions/linux-software-2/sendmail-server-stats-411867/)

matsko 02-05-2006 08:29 AM

Sendmail Server Stats
 
I was wondering, how hard would it be to build a shell script that would email the server stats to my email address using sendmail...

STATS=`uptime`
sendmail $STATS email@email.com

(I really dont know anything about sendmail, but I am just giving the basic idea of what I want it to do)

What do I have to do.

Thanks

acid_kewpie 02-05-2006 08:54 AM

Code:

uptime | mail -s "uptime report" bob@bob.com


All times are GMT -5. The time now is 04:32 AM.