Operating System - HP-UX
1753566 Members
6076 Online
108796 Solutions
New Discussion юеВ

Re: Enable logging crontab

 
titu
Regular Advisor

Enable logging crontab

Hello All,

I want to enable logging in crotab file.

Crontab deamon having some issue.

I want to track so want to enable logging so that it can track.

Thanks
Titu
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Enable logging crontab

Have you checked /var/adm/cron/log?


Pete

Pete
titu
Regular Advisor

Re: Enable logging crontab

I am not getting anything in the cron logs
Dennis Handly
Acclaimed Contributor

Re: Enable logging crontab

>I am not getting anything in the cron logs

Nothing for any user?
Is cron(1M) running?
titu
Regular Advisor

Re: Enable logging crontab

The deamon is dying without logging anything in cron logs.

I want to enable any auditing/logging so that I can trace what making this deamon die.
James R. Ferguson
Acclaimed Contributor

Re: Enable logging crontab

Hi Titu:

Did you trim '/var/adm/cron/log' by renaming ('mv'ing) the active copy? If so, the daemon will continue to update the renamed file and not the one named '/var/adm/cron/log'.

To trim logs, you should either truncate them by redirecting '/dev/null' to them or copy ('cp') them as another name first.

Try restarting your 'cron' daemon:

# /sbin/init.d/cron stop
# /sbin/init.d/cron start

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Enable logging crontab

>The daemon is dying without logging anything in cron logs.

How about in syslog?
What HP-UX version are you using?

>I want to enable any auditing/logging so that I can trace what making this daemon die.

You find any core files?