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. Link to comment https://forums.phpfreaks.com/topic/25004-why-wont-this-wrapper-run-my-script/ 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. Link to comment https://forums.phpfreaks.com/topic/25004-why-wont-this-wrapper-run-my-script/#findComment-113986 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.