- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Log message of cron.
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
09-17-2003 05:33 AM
09-17-2003 05:33 AM
Log message of cron.
In cron log, noticed 3rd line in below.
CMD: /opt/dispatcher.sh > /dev/null 2>&1
oper 19551 c Wed Sep 17 15:25:00 EDST 2003
oper 19551 c Wed Sep 17 15:25:00 EDST 2003 rc=1
oper 19550 c Wed Sep 17 15:25:03 EDST 2003
I am thinking rc=1 must be a retrun code 1 from script. Am I right?
Any pointer on this?
Thanks in advance.
Cheers,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 05:41 AM
09-17-2003 05:41 AM
Re: Log message of cron.
rc=1 is the return code from the shell/script. /opt/dispatcher.sh returns 1 to the cron job which is shown in cron log.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 05:42 AM
09-17-2003 05:42 AM
Re: Log message of cron.
most probably due to the environmental variables not defined.
make sure that you define all the env variables inside the cron script.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 05:42 AM
09-17-2003 05:42 AM
Re: Log message of cron.
I agree that this is a return code. The only suggestion I have is to stop redirecting stderr and stdout to see if you can find out what caused the rc.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 05:43 AM
09-17-2003 05:43 AM
Re: Log message of cron.
Is user "oper" allowed to use cron? Do they appear in /var/adm/cron/cron.allow?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 05:48 AM
09-17-2003 05:48 AM
Re: Log message of cron.
Two ways to deal with it. Set the PATH in the script along with other environment variables, or use the full path of all the commands in the script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 07:22 AM
09-17-2003 07:22 AM
Re: Log message of cron.
Thanks for your prompt response on this issue.
I am succeeded to analyze this error. I am right. Scheduled dispatcher.sh shell script is exiting with return code i.e. rc=1.
Really, I apreciate your various ideas to analyse error.
Cheers,
Rajesh SB