Can't run perl script using exec or system
| From: | Lara J. Fabans | Date: | Mon, 13 Aug 2001 03:12:28 +0000 |
| Subject: | Can't run perl script using exec or system | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-62365@lists.php.net to get a copy of this message | ||
Hi, friends,
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.
Thanks,
Lara
---------------8< 8< -------------------------------------
$command = "/home/copyUp.pl $sellerid $image";
exec($command, $output, $error);
if($error)
{
echo "OS Error1 $error<br>";
}
$filename = basename($image);
print "Filename: $filename";
$cmd="/home/convert.pl $sellerid $filename";
exec($cmd, $output, $error);
if($error)
{
echo "OS Error2 $error<br>";
}
---------------------
Lara J. Fabans
Lodestone Software, Inc
lara@lodestone-sw.com