Re: [newbie] cron error

2003-10-07 Thread L.V.Gandhi
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


Re: [newbie] cron error

2003-10-01 Thread Raffaele Belardi
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-x2 root root  120 Sep 28 02:24 ./
drwxr-xr-x   12 root root 1152 Oct  1 05:26 ../
-rw-r-1 root root0 Sep 28 02:24 errors
-rw-r-1 root root 6351 Oct  1 05:28 info
-rw-r-1 root root0 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


Re: [newbie] cron error

2003-10-01 Thread Derek Jennings
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 )

derek
-- 
--
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


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


[newbie] cron error

2003-09-30 Thread L.V.Gandhi
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-x2 root root  120 Sep 28 02:24 ./
drwxr-xr-x   12 root root 1152 Oct  1 05:26 ../
-rw-r-1 root root0 Sep 28 02:24 errors
-rw-r-1 root root 6351 Oct  1 05:28 info
-rw-r-1 root root0 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.
-- 
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


Re: [newbie] cron error message

2000-12-02 Thread bascule

thankyou very much,

bascule

On Friday 01 December 2000  4:38 pm, you wrote:
 On Fri, 1 Dec 2000, bascule wrote:

 I figured that one out.
 In /etc/cron.daily there's a file called htdig-dbgen.
 Just chmod -x that and it's over with the messages.

 Paul

 hi,
 i am getting the message below regularly, i would be grateful if someone
 could tell me if it is serious and how i might fix it?
 
 
 
 DB2 problem...: missing or empty key value specified




[newbie] cron error message

2000-12-01 Thread bascule

hi,
i am getting the message below regularly, i would be grateful if someone 
could tell me if it is serious and how i might fix it?

bascule

Subject: Cron root@mycroft run-parts /etc/cron.daily
X-Cron-Env: SHELL=/bin/bash
X-Cron-Env: PATH=/sbin:/bin:/usr/sbin:/usr/bin
X-Cron-Env: MAILTO=root
X-Cron-Env: HOME=/
X-Cron-Env: LOGNAME=root
Message-Id: [EMAIL PROTECTED]
Date: Wed, 29 Nov 2000 04:04:47 + (GMT)
 
DB2 problem...: missing or empty key value specified
  





Re: [newbie] cron error message

2000-12-01 Thread Paul

On Fri, 1 Dec 2000, bascule wrote:

I figured that one out.
In /etc/cron.daily there's a file called htdig-dbgen.
Just chmod -x that and it's over with the messages.

Paul

hi,
i am getting the message below regularly, i would be grateful if someone
could tell me if it is serious and how i might fix it?

bascule

Subject: Cron root@mycroft run-parts /etc/cron.daily
X-Cron-Env: SHELL=/bin/bash
X-Cron-Env: PATH=/sbin:/bin:/usr/sbin:/usr/bin
X-Cron-Env: MAILTO=root
X-Cron-Env: HOME=/
X-Cron-Env: LOGNAME=root
Message-Id: [EMAIL PROTECTED]
Date: Wed, 29 Nov 2000 04:04:47 + (GMT)

DB2 problem...: missing or empty key value specified





-- 
God must love crazy people.
He made so many of them!

http://nlpagan.net - ICQ 147208 - Registered Linux User 174403
 Linux Mandrake 7.2 - Pine 4.30





RE: [newbie] cron error

1999-09-05 Thread Ken Wilson

If you look at slocate.cron in a text editor you will notice that the
last '}' is on a line by itself.  Go to the last '}' and do a backspace
to bring it back up to its proper line.

If that doesn't work you'll have to open slocate.cron with the hex
editor.  If you are using the hex editor, replace the 0A that appears
just in front of the '}' with 20 (space).  That should resolve the issue
for sure.  When you are done you should only have the slocate.cron file.
If you have a slocate.cron~ file get rid of it.

Ken Wilson
First Law of Optimization: The speed of a nonworking program is
irrelevant
(Steve Heller, 'Efficient C/C++ Programming')

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of JK
 Sent: Saturday, September 04, 1999 11:44 PM
 To: [EMAIL PROTECTED]
 Subject: [newbie] cron error


 Every time cron runs the below thing is what is sent to the
 root user. I
 logged on as root to install a new rpm I downloaded and it said I had
 mail. I checked mail and 8 messages were based on this error. Any clue
 how to fix the error?

 /usr/bin/news.daily: /var/lib/news/.news.daily: Permission denied
 /etc/cron.daily/slocate.cron: line 6: syntax error: unexpected end of
 file

 Thanks in advance
 John





RE: [newbie] cron error

1999-09-05 Thread Axalon Bloodstone

On Sun, 5 Sep 1999, Ken Wilson wrote:

 If you look at slocate.cron in a text editor you will notice that the
 last '}' is on a line by itself.  Go to the last '}' and do a backspace
 to bring it back up to its proper line.
 
 If that doesn't work you'll have to open slocate.cron with the hex
 editor.  If you are using the hex editor, replace the 0A that appears
 just in front of the '}' with 20 (space).  That should resolve the issue
 for sure.  When you are done you should only have the slocate.cron file.
 If you have a slocate.cron~ file get rid of it.
 
 Ken Wilson
 First Law of Optimization: The speed of a nonworking program is
 irrelevant
 (Steve Heller, 'Efficient C/C++ Programming')
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of JK
  Sent: Saturday, September 04, 1999 11:44 PM
  To: [EMAIL PROTECTED]
  Subject: [newbie] cron error
 
 
  Every time cron runs the below thing is what is sent to the
  root user. I
  logged on as root to install a new rpm I downloaded and it said I had
  mail. I checked mail and 8 messages were based on this error. Any clue
  how to fix the error?
 
  /usr/bin/news.daily: /var/lib/news/.news.daily: Permission denied

touch /var/lib/news/.news.daily
chown news:news /var/lib/news/.news.daily

  /etc/cron.daily/slocate.cron: line 6: syntax error: unexpected end of
  file
 
  Thanks in advance
  John
 
 
 
 

--
MandrakeSoft  http://www.mandrakesoft.com/
--Axalon



[newbie] cron error

1999-09-04 Thread JK

Every time cron runs the below thing is what is sent to the root user. I
logged on as root to install a new rpm I downloaded and it said I had
mail. I checked mail and 8 messages were based on this error. Any clue
how to fix the error?

/usr/bin/news.daily: /var/lib/news/.news.daily: Permission denied
/etc/cron.daily/slocate.cron: line 6: syntax error: unexpected end of
file

Thanks in advance
John