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 |
Code:
uptime | mail -s "uptime report" bob@bob.com |
All times are GMT -5. The time now is 04:32 AM. |