Re: Can't run perl script using exec or system

From: Date: Mon, 13 Aug 2001 23:48:51 +0000
Subject: Re: Can't run perl script using exec or system
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62528@lists.php.net to get a copy of this message
> Using the following code, the two files copyUp.pl and convert.pl > aren't called. I can run them peachy dandy from the commandline > with the expected results. I've tried system(), exec(), and back tics. > $command = "/home/copyUp.pl $sellerid $image"; > exec($command, $output, $error); > if($error) > { > echo "OS Error1 $error<br>"; > } Do you get this error output? What number? If not, add this: echo implode("<BR>\n", $output); Are the Perl scripts world-executable? Do they start with #! /usr/bin/perl, or are you relying on shell configuration to "know" they are Perl scripts, which PHP's shell probably won't? Does either Perl script access other files to which "nobody" might not have access? Why are you using Perl anyway? :-) -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#62528) next »