[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
On Wed, 12 Feb 2003, Mark Cubitt wrote: > hi, > > I'm trying to run a sh script from a web page using wither perl(CGI) or php, > I have searched the web and tried quite a few options but none seem to work. > > the file is called build.sh and is stored in /wsw/ it deletes some files > chmods some files and runs some pl files to build a web site. > > I have tried 'popen' in php and the following > > $cmd = "/wsw/build.sh"; > $ret = qx($cmd) or die "Can't execute: $!\n"; > > in perl > > the file permissions are set to 777 on both the sh file and the wsw > directory. > > the problem is it seems to run part of the file (deletes some files but not > all I want) but doesn't run any of the rest. > > if anybody can shed some light on this it would be a great help. Are all the files owned/writable by the webserver? What does it say in the error_log? That is usually very helfpul. Alex. -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.