On Wednesday 01 Oct 2003 3:04 pm, Derek Jennings wrote:
> On Wednesday 01 Oct 2003 1:13 am, L.V.Gandhi 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)
> >
> > I think exit status 1 indicates error. Where this mailed output goes.
>
> It goes to the email address (or users mail spool file) listed in the
> MAILTO= parameter in /etc/crontab
>
> If you want it to go to an email address then you must either be running a
> mail server to have the ssmtp RPM installed to forward the mail to a mail
> server. (Config file in /etc/ssmtp/ssmtp.conf )

I have installed postfix. it is shown also as below.

Oct  7 05:04:07 lvghomepc postfix: Starting postfix:
Oct  7 05:04:10 lvghomepc postfix:  succeeded
Oct  7 05:04:10 lvghomepc postfix: ^[[65G[^[[1;32m
Oct  7 05:04:10 lvghomepc postfix:
Oct  7 05:04:10 lvghomepc rc: Starting postfix:  succeeded

Now error from anacron has gone. I feel this si because it can send output to 
root as in 
[EMAIL PROTECTED] security]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root nice -n 19 run-parts /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly

but the cron.daily exit status shows error.

Oct  7 05:09:24 lvghomepc anacron[1608]: Job `cron.daily' started
Oct  7 05:09:24 lvghomepc anacron[1851]: Updated timestamp for job 
`cron.daily' to 2003-10-07
Oct  7 05:10:15 lvghomepc anacron[1608]: Job `cron.daily' terminated (exit 
status: 1) (mailing output)
Oct  7 05:10:15 lvghomepc anacron[1608]: Normal exit (1 jobs run)

 But mail in root prompt shows no mail for root. How to find reason for exit 
status 1.
-- 
L.V.Gandhi
203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017
MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA
http://lvgandhi.tripod.com/


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

Reply via email to