1844161 Members
2364 Online
110229 Solutions
New Discussion

cron return code

 
Bawitdaba
Frequent Advisor

cron return code

Hi everyone
i've got a question...i don't know what a cron return code equal to 1 means...anyone does???

Thanks
4 REPLIES 4
Trond Haugen
Honored Contributor

Re: cron return code

Returncodes can usually be looked up in the /usr/include/sys/errno.h where you will find:#define EPERM 1 /* Not super-user
So the problem seems to be lack of privliges. This may not be the real cause but hopefully it will help you.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Stefan Farrelly
Honored Contributor

Re: cron return code

It just means the job failed - some command in the cron job returned an error code of 1 which means it didnt work properly. Other parts of the cron job may have completed normally though.


Im from Palmerston North, New Zealand, but somehow ended up in London...
Robin Wakefield
Honored Contributor

Re: cron return code

Hi,

If it's a script, there may be an "exit 1" triggered by an error condition. What is the cron job trying to run?

Rgds, Robin
Bawitdaba
Frequent Advisor

Re: cron return code

The job executed by the cron is a backup.
I'll give you more details...
The customer has a simple script which just has to give an output saying if the backup has been done right or not.

The backup is done correctly, but the output of the script specifies that it has been done wrong and also we get that return exit code.

thanks