- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron not running with rc=1
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
Forums
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
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
06-17-2004 06:45 PM
06-17-2004 06:45 PM
Anyone can help me please? I still can not verify why one of my cron jobs is not running with rc=1. Below is the error from /var/adm/cron/log.
What does mean rc=1? How to resolve it?
Thanks and Best Regards,
Negara
> CMD: /home/ap1030/projects/ssh/check/check_ssh_dirk
> root 2784 c Thu Jun 17 07:00:00 EDT 2004
< root 2784 c Thu Jun 17 07:00:00 EDT 2004 rc=1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 06:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 06:49 PM
06-17-2004 06:49 PM
Re: Cron not running with rc=1
This is output from your script. Not any cron error.
regards,
RDL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 07:02 PM
06-17-2004 07:02 PM
Re: Cron not running with rc=1
When I put it on cron, it did not even create an empty log file. It looks like not running at all.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 07:07 PM
06-17-2004 07:07 PM
Re: Cron not running with rc=1
When you run the script from Commandline if picks up the env. for the user.
Cron will not recognize this,you will have to source your env. settings file in your cron script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 07:08 PM
06-17-2004 07:08 PM
Re: Cron not running with rc=1
It seems that some commnad in the script has executed with a syntax error leading to a exit code=2.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 07:16 PM
06-17-2004 07:16 PM
Re: Cron not running with rc=1
HTH,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 07:23 PM
06-17-2004 07:23 PM
Re: Cron not running with rc=1
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 07:49 PM
06-17-2004 07:49 PM
Re: Cron not running with rc=1
(1) Is the system trusted?
(2) Is the auditing turned on?
(3) Is the cronjob root's cronjob? Or user's cronjob?
(4) If root's cronjob, is the root belongs to the group root?
(5) If user's cronjob, is the script runable by the user?
(6) And like others have mentioned, your script must contain the shell environment etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 08:02 PM
06-17-2004 08:02 PM
Re: Cron not running with rc=1
Thanks for your help.
I just set up the environment again and it looks fine now.
Thanks again.
Best Regards,
Negara