- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron errors in /var/adm/cron/log
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2011 03:26 PM
12-01-2011 03:26 PM
Hi,
/usr/sbin/cron(1M) Clock Daemon Job 22583 Cron command of root with pid 22583 failed (rc = 1)
Can anyone let me know what is this error and how to resolve this issue?
I have checked and found cron daemon is running.
#-> ps -ef | grep -i cron
root 3139 1 0 Jul 16 ? 1:55 /usr/sbin/cron
root 391 28273 1 18:25:01 pts/0 0:00 grep -i cron
Solved! Go to Solution.
- Tags:
- cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2011 04:09 PM
12-01-2011 04:09 PM
Solutioncron simply runs jobs. If the job or script returns a non-zero value, cron will log the return code (rc=1 in your case). There's nothing wrong with cron. The job it ran is the failure. Because cron is a batch process, all of your cron jobs should log their steps and results. The most common problem is not establishing the required environment for a cron job. The job may work when you are logged in, but cron does not login for your job -- all the settings you need for the job must be in the job itself.
Since cron only logs PID (process id) for the failure, you'll need to compare the list of jobs from crontab -l and try to match the failure with the actual job.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2011 06:47 AM
12-02-2011 06:47 AM
Re: cron errors in /var/adm/cron/log
>Since cron only logs PID (process id) for the failure
cron(1m) logs the time start and end AND the script in /var/adm/cron/log.
This topic has an example:
http://h30499.www3.hp.com/t5/System-Administration/Cron-log-showing-error-as-rc-1/m-p/5147074
> CMD: /home/abcd/script/auto_run_db_extract.ksh
> abcd 14909 c Fri Dec 12 19:01:00 CST 2008
< abcd 14909 c Fri Dec 12 19:02:08 CST 2008