1823753 Members
3948 Online
109664 Solutions
New Discussion юеВ

rc=99 means what?

 
SOLVED
Go to solution
Fredric V├еdeg├еrd
Frequent Advisor

rc=99 means what?

I have got rc=99 in my /var/adm/cron/log file, but I don??t know what cause the problem.
Fredde
5 REPLIES 5
Ceesjan van Hattum
Esteemed Contributor

Re: rc=99 means what?

The rc (return-value) is the returnvalue of the program sheduled in cron. This can by anything. It very much depends on the application.

Normally, it should return 0 (=good) or 1 (=failure), but all codes are possible.

To test this on your system: write a script:

#!/bin/ks
echo "testing"
exit 55

Once sheduled inside cron, it should give logging in cron/log file.

So.. for the actual meaning of 99 you have to look in the application, not in cron.
Regards,
Ceesjan
PIYUSH D. PATEL
Honored Contributor

Re: rc=99 means what?

Hi,

The rc= field in cron logs indicates the "return code" or exit value
of a process. For example, if the cron log indicates rc=1, then the process exited with return status 1

An exit code > 128 indicates that the process has ended abnormally (see man sh-posix).

rc=0=success
rc=1=error
rc=2=N/A (skip)

Here, I think you may have to look into the application or script which is causing the problem.

Piyush
PIYUSH D. PATEL
Honored Contributor
Solution

Re: rc=99 means what?

Hi,

In genearal, for any program, zero (0) denotes success and non-zero) values denote a failure of some kind.

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)

Piyush
Steve Steel
Honored Contributor

Re: rc=99 means what?

Hi

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2906a24d9abcd4118fef0090279cd0f9,00.html

Explains it well.

Something returns without setting a value then it is random.


steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Fredric V├еdeg├еrd
Frequent Advisor

Re: rc=99 means what?

Thanks for your answears.
The strange part is that my simple script ends with exit 0 if it goes well and exit 1 if not. Why do cron report this in the log ? The script ran successfully.

Fredde