Operating System - HP-UX
1826107 Members
5181 Online
109690 Solutions
New Discussion

Re: cron job results are not logged in /usr/lib/cron/log

 
Igor Savchuk
New Member

cron job results are not logged in /usr/lib/cron/log

Helo,
In order to clean up space in the /usr file system I was advised to remove the
/usr/lib/cron/log file. When I removed /usr/lib/cron/log file and after
created it with the touch command I found out that results of the cron jobs are
not logged in /usr/lib/cron/log.

What should I do to repair it?
Thanks a lot.
2 REPLIES 2
Kyle Links
New Member

Re: cron job results are not logged in /usr/lib/cron/log

First thing:
You should have used one of the following 2 commands to zero out the file
(don't delete and recreate).

cat /dev/null >file
or
cp /dev/null file

You now need to recreate the file with the following permissions and
ownerships:

-rw-r--r-- 1 root root 384330 Feb 25 10:15 log

Take care,
---Kyle
Randy Mather
Frequent Advisor

Re: cron job results are not logged in /usr/lib/cron/log

You can also type at the prompt:

">log" and this will 0 out the files.