I don't know about the cron error, but regarding the mail output, "man cron" says:

"When executing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if such exists)."

Naturally, there must be a mailer deamon running (sendmail or other) for that to work. Sorry if I state the obvious.

raffaele

[EMAIL PROTECTED] wrote:
I get following error.
Sep 30 05:29:02 lvghomepc anacron[1507]: Job `cron.daily' started
Sep 30 05:29:02 lvghomepc anacron[1770]: Updated timestamp for job `cron.daily' to 2003-09-30
Sep 30 05:29:51 lvghomepc anacron[1507]: Job `cron.daily' terminated (exit status: 1) (mailing output)
====
Oct 1 05:26:29 lvghomepc anacron[1480]: Job `cron.daily' started
Oct 1 05:26:29 lvghomepc anacron[1892]: Updated timestamp for job `cron.daily' to 2003-10-01
Oct 1 05:26:30 lvghomepc ADVXctl: httpd -HUP succeeded
Oct 1 05:26:33 lvghomepc last message repeated 11 times
Oct 1 05:28:04 lvghomepc su(pam_unix)[6800]: session opened for user root by lvgandhi(uid=501)
Oct 1 05:28:15 lvghomepc anacron[1480]: Job `cron.daily' terminated (exit status: 1) (mailing output)


but var/log/cron shows no errors as given below and root also didn't show any mail .
[EMAIL PROTECTED] lvgandhi]# cd /var/log/cron/
[EMAIL PROTECTED] cron]# l
total 10
drwxr-xr-x 2 root root 120 Sep 28 02:24 ./
drwxr-xr-x 12 root root 1152 Oct 1 05:26 ../
-rw-r----- 1 root root 0 Sep 28 02:24 errors
-rw-r----- 1 root root 6351 Oct 1 05:28 info
-rw-r----- 1 root root 0 Sep 28 02:24 warnings


[EMAIL PROTECTED] cron]# tail info
Sep 30 21:01:00 lvghomepc CROND[3262]: (root) CMD (nice -n 19 run-parts /etc/cron.hourly)
Sep 30 21:08:13 lvghomepc crond[1475]: (CRON) STARTUP (fork ok)
Sep 30 21:08:17 lvghomepc anacron[1533]: Anacron 2.3 started on 2003-09-30
Sep 30 21:08:18 lvghomepc anacron[1533]: Normal exit (0 jobs run)
Oct 1 05:21:24 lvghomepc crond[1425]: (CRON) STARTUP (fork ok)
Oct 1 05:21:29 lvghomepc anacron[1480]: Anacron 2.3 started on 2003-10-01
Oct 1 05:21:29 lvghomepc anacron[1480]: Will run job `cron.daily' in 5 min.
Oct 1 05:26:29 lvghomepc anacron[1480]: Job `cron.daily' started
Oct 1 05:26:29 lvghomepc anacron[1892]: Updated timestamp for job `cron.daily' to 2003-10-01
Oct 1 05:28:15 lvghomepc anacron[1480]: Job `cron.daily' terminated (exit status: 1) (mailing output)


I think exit status 1 indicates error. Where this mailed output goes.


------------------------------------------------------------------------


Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to