General

RC 127 Error is coming while executing a shell script in cron job scheduler

 
deepak921
New Member

RC 127 Error is coming while executing a shell script in cron job scheduler

Hi,

 

I have created one shell script which is running fine on shell prompt. But while I am scheduling it as a cron job it is giving RC 127 error.

 

Please help.

2 REPLIES 2
Matti_Kurkela
Honored Contributor

Re: RC 127 Error is coming while executing a shell script in cron job scheduler

RC 127 is just the result code from the failing command - you cannot interpret it without first knowing which command set the result code.

 

The first step is to find the actual error message produced by the cron job. If the standard output and error streams of the cron job have not been redirected, the error messages will be sent by email to the user owning the cron job. If the email services on the system are in default configuration, you will usually find the cron job errors in the user's email inbox, normally located at /var/mail/<username>.

 

 

MK
Dennis Handly
Acclaimed Contributor

Re: RC 127 Error is coming while executing a shell script in cron job scheduler

>I have created one shell script which is running fine on shell prompt.

 

This typically means your shell script is depending on the sourcing of your .profile, which isn't done by cron.