Page 1 of 1

Receiving error code 127 every time I exec my script

Posted: Mon Jun 10, 2002 7:43 am
by aslug3
I am exec'ing a shell script I wrote and tested on the command line. The return code from the exec() is always 127. Can't seem to figure out why? Any suggestions on what could cause this?

Err?

Posted: Mon Jun 10, 2002 12:06 pm
by BDKR
I got this sinking feeling that 127 is something along the lines of file not found. However, eventhough it sounds familiar, I can't place it.

What is the executable? Have you tried running it from the command line yourself? Also, try putting in the complete path to the executable. Something like

Code: Select all

# Ha ha ha ha
exec("/usr/local/bin/spam_the_irs");
Let me know how it comes out,
Big Din K.R.