Receiving error code 127 every time I exec my script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aslug3
Forum Newbie
Posts: 1
Joined: Mon Jun 10, 2002 7:43 am

Receiving error code 127 every time I exec my script

Post 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?
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Err?

Post 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.
Post Reply