1834018 Members
2058 Online
110063 Solutions
New Discussion

cron.log

 
SOLVED
Go to solution
j773303
Super Advisor

cron.log

What's the mean RC=137 and RC=31? this string
will show in cron.log !
Hero
3 REPLIES 3
Con O'Kelly
Honored Contributor

Re: cron.log

Hi

It refers to the Return Code.
Jobs that have run successfully should have rc=0.
Any unsuccessful jobs have a return code greater than 0. You will need to check the actual script/application to see what 137 & 31 refers to.

Cheers
Con
Michael Tully
Honored Contributor
Solution

Re: cron.log

The RC means the 'return code'

rc=0 >> OK
rc=1 >> fault
rc=2 >> Warning

There is a list in TKB that show some of them, but your could be application specific.

rc=101 no at command file
rc=102 (stat(at_cmdfile,&buf)) was true, so stat(2) returned an error
rc=103 if set uid bit off, original owner has given file to someone
else
rc=104 bad job open
rc=105 no audit id
rc=106 couldn't set group /user ids, exiting
rc=107 couldn't open stdin
rc=108 no stdin
rc=109 couldn't open tmp as stdin to sh
rc=110 couldn't open output file or /dev/null
rc=111 testing
rc=112 can't exec sh
rc=127 can't fork (this might also be return code from the shell)
rc=113 file locking problem
Anyone for a Mutiny ?
James R. Ferguson
Acclaimed Contributor

Re: cron.log

Hi:

"rc" means "return code". Values other than zero (0) indicate some error.

Technical Knowledge Base document #HPUXKBRC00001849 describes some common values based on the 'cron' source code:

rc=101 no at command file
rc=102 (stat(at_cmdfile,&buf)) was true, so stat(2) returned an error
rc=103 if set uid bit off, original owner has given file to someone else
rc=104 bad job open
rc=105 no audit id
rc=106 couldn't set group /user ids, exiting
rc=107 couldn't open stdin
rc=108 no stdin
rc=109 couldn't open tmp as stdin to sh
rc=110 couldn't open output file or /dev/null
rc=111 testing
rc=112 can't exec sh
rc=113 file locking problem
rc=127 can't fork (this might also be return code from the shell)

In general, the return code is the value of the signal caught by the process plus 128.

Regards!

...JRF...