LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-05-2006, 08:29 AM   #1
matsko
Member
 
Registered: Dec 2005
Posts: 51

Rep: Reputation: 15
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
 
Old 02-05-2006, 08:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Code:
uptime | mail -s "uptime report" bob@bob.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sound server artsd crashes evrytime kde stats ramaswamyps Slackware 2 12-30-2005 08:52 AM
Server Stats App? nicedreams Linux - Software 2 11-15-2005 02:25 PM
Is it safe to show server stats? six6 Linux - Security 3 08-05-2005 12:31 PM
Sendmail server name in greetings macadam Linux - Software 2 09-03-2004 11:03 AM
DU Stats WhiteWolf Linux - Networking 0 10-01-2003 06:43 PM


All times are GMT -5. The time now is 06:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration