toasty Posted October 25, 2006 Share Posted October 25, 2006 Here's the code I've been screwing with for way-too-long.[code]#! /bin/shecho "Content-type: text/plain";echo;cd "${SITE_ROOT}/path_to_folder_of_script";"php script.php -u http://www.__________.com/test/ -r";echo "Script completed with exit code $?.";exit 0;[/code]The code I'm trying to run [color=orange]php script.php -u http://www.__________.com/test/ -r ;[/color] works fine and executes without a hitch from the shell. however when I run it - [b]attempt to run it[/b] - from a browser by means of the wrapper file I continually get [color=red]Script completed with exit code 127[/color]. The code in question is a command line reindexing for my site's search engine.Any ideas? This has been driving me insane for the past three days. Quote Link to comment Share on other sites More sharing options...
btherl Posted October 25, 2006 Share Posted October 25, 2006 Removing the double quotes around the php command should help. The other double quotes can stay. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.