Hi All! I am running 8.0 and configured syslog.conf to write all of the cron messages to /var/log/cronlog. However, what I noticed is that errors are not being reported as such. Instead, just the fact the job was started ends up in the log file. It doesn't matter if the script that cron is supposed to start is not there, does not have the correct permissions, or whatever. Errors are just not being reporting. The same thing even happens when using the defaults and cron messages go to /var/log/messages. I have added an entry to /etc/crontab and it is sending email, as well as added the same entry using crontab -e. Nothing seems to make cron report the errors. Any ideas would be greatly appreaciated. Regards, jimmo -- --------------------------------------- "Be more concerned with your character than with your reputation. Your character is what you really are while your reputation is merely what others think you are." -- John Wooden --------------------------------------- Be sure to visit the Linux Tutorial: http://www.linux-tutorial.info --------------------------------------- NOTE: All messages sent to me in response to my posts to newsgroups, mailing lists or forums are subject to reposting.
The 03.10.13 at 19:30, James Mohr wrote:
I have added an entry to /etc/crontab and it is sending email, as well as added the same entry using crontab -e. Nothing seems to make cron report the errors.
Look for a line like: MAILTO=root in your crontab files. Also, the script '/usr/lib/cron/run-crons' (called from root's crontab) may have a line like: SEND_MAIL_ON_NO_ERROR=false Also, make sure the user running the cron job can send/receive local mail. -- Cheers, Carlos Robinson
On Monday 13 October 2003 20:52, Carlos E. R. wrote:
The 03.10.13 at 19:30, James Mohr wrote:
I have added an entry to /etc/crontab and it is sending email, as well as added the same entry using crontab -e. Nothing seems to make cron report the errors.
Look for a line like:
MAILTO=root
in your crontab files. Also, the script '/usr/lib/cron/run-crons' (called from root's crontab) may have a line like:
SEND_MAIL_ON_NO_ERROR=false
Also, make sure the user running the cron job can send/receive local mail.
-- Cheers, Carlos Robinson
-- --------------------------------------- "Be more concerned with your character than with your reputation. Your character is what you really are while your reputation is merely what others think you are." -- John Wooden --------------------------------------- The Linux Tutorial needs your help! Visit us at http://www.linux-tutorial.info
On Monday 13 October 2003 20:52, Carlos E. R. wrote:
The 03.10.13 at 19:30, James Mohr wrote:
I have added an entry to /etc/crontab and it is sending email, as well as added the same entry using crontab -e. Nothing seems to make cron report the errors.
Look for a line like:
MAILTO=root
in your crontab files. Also, the script '/usr/lib/cron/run-crons' (called from root's crontab) may have a line like:
SEND_MAIL_ON_NO_ERROR=false
Also, make sure the user running the cron job can send/receive local mail.
-- Cheers, Carlos Robinson
Sorry 'bout that exta message. I forwarded it on to work, where I wanted test it and got the list, as well. The thing is that mail works fine. However, I don't want any mail at all. Instead, I want the errors to be written to a log file like with other systems. No one uses these machines and we have monitoring software that reads the logs and sends messages accordingly. However, I cannot get cron to report anything other than the job was started. Regards, jimmo -- --------------------------------------- "Be more concerned with your character than with your reputation. Your character is what you really are while your reputation is merely what others think you are." -- John Wooden --------------------------------------- The Linux Tutorial needs your help! Visit us at http://www.linux-tutorial.info
The 03.10.15 at 20:52, James Mohr wrote:
The thing is that mail works fine. However, I don't want any mail at all. Instead, I want the errors to be written to a log file like with other systems. No one uses these machines and we have monitoring software that reads the logs and sends messages accordingly. However, I cannot get cron to report anything other than the job was started.
Ah. I had that problem time ago (SuSE 7.3) but I don't remember how we solved it. I have browsed some files, but I couldn't find it. I think it was a setting somewhere. There are alternatives. Yo can email somewhere else - even external an address - or you can mail it to a local user running procmail, for example, and piping it to a program to parse and take appropriate action: even sending it back to syslog. -- Cheers, Carlos Robinson
participants (2)
-
Carlos E. R.
-
James Mohr