Receiving error code 127 every time I exec my script
Moderator: General Moderators
Receiving error code 127 every time I exec my script
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?
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
Let me know how it comes out,
Big Din K.R.
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");Big Din K.R.