Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure cron to send email

Status
Not open for further replies.

md1750

MIS
Apr 18, 2001
80
US
I have setup cron to run webalizer.And I need help in setting the cron job so that it can send email of its output.
 
Hi,

Paste here your webalizer cron job. Usually if you omit redirection, it will send an email to owner of cron job.

dbase77
 
the crontab entry looks like this, if your script writes to standardout/standarderror:
0 * * * * echo `hostname` `date` is alive | mailx -s alive reciptient@domain.com

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top