On Saturday 17 August 2002 04:35, Kelly Meeks wrote: > Hi folks, > > I'm learning shell scripting via linux, and have written a script that > creates the core files necessary for a users website from a master set of > files. > > Works from the shell just fine (bash makethesite.sh username pathtoputfiles > pathtogetfiles) > > Trying to execute this via php, and it literally does nothing. > > If I try something like: > $bashoutput=shell_exec('bash makethesite.sh username pathtoputfiles > pathtogetfiles'); echo $bashoutput; > > I get nothing output, and the script doesn't execute.
What does the php logs say? You should set error_reporting to E_ALL. > Any ideas? The user that the webserver (assuming apache) is usually nobody or apache and may not have the necessary permissions to execute your script. Also try specifying the complete path to bash. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Those who educate children well are more to be honored than parents, for these only gave life, those the art of living well. -- Aristotle */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php