LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-15-2006, 09:47 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
cron & MAILTO


I want to receive email when cront job is run also when cron job crashed.
Below is crontab file specification. Why I'm not receving emails?


//Crontab File
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO='myaddress@email.com'
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
 
Old 04-17-2006, 04:06 AM   #2
sc425000
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
please see at mail log file /var/log/maillog for error about sendmail .And make sure you can sendmail to another hosts and that host can recive mails from another host too
 
  


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
cron.daily & logrotate cccc SUSE / openSUSE 1 07-08-2005 12:06 PM
logrotate && cron pH* Linux - General 9 12-21-2004 10:38 AM
Cron + MAILTO option mikeshn Linux - Software 1 10-19-2004 06:31 AM
cron mailto eyt Linux - Newbie 3 02-17-2004 07:45 AM
Has anyone set up cron to "mailto" multiple persons? m_cornelsen Linux - General 1 11-17-2001 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration