PDA

View Full Version : Php System() call Perl Script Return Code 13 ?


greenrob
02-21-2006, 04:00 PM
hi there,

I run into major problem here and I still cant get it resolved ?

I tried to execute a perl script using the PHP system call


$haha = system('perl /home/testing/cron_scripts/generate.pl', $retval);

echo "Haha is $haha<br>";
echo "Ret Val is $retval<br>";


The problem is I keep getting $retval = 13 ? But if I were to run them from Command line it works. However the script will take sometime. I am not sure if 13 means the code is running or something ? But the problem is my PHP script just exit !

THanks.. Hope someone could help me out here. What does the 13 return value means actually ?