Howdy
I'm attempting to use the exec() in a Linux environment involving files in directories, all of which have been 'chmod 777'd. This is the function call that doesn't work:
$result = exec('perl -S /home/fyejm5/PERL/GetSeq.p '.$Path.'/'.$GI.' '.$Upstream.' '.$len.' /home/websites/genework/html/DATA/'.$Sess_ID.'/'.$Sess_ID, $response, $return_code);
print_r(array('result was'=>$result, 'response was'=>$response, 'return code'=>$return_code ));
Here's the actual output off the command, which works like a champ when I run it from the command line:
perl -S /home/me/PERL/GetSeq.p /home/me/GENOME/MOUSE/CHR_17/149313536 34324324 500 /home/websites/genework/html/DATA/07-12-07--12:03:49/07-12-07--12:03:49
The result is the creation of two files in the 07-12-07--12:03:49 directory, each named 07-12-07--12:03:49.txt and 07-12-07--12:03:49.out.
This is the result from the print_r:
result was =>
response was => Array()
return code => 13
What does the response mean? What error does 13 represent? Is there something syntactically wrong with the exec()? This. Is driving me. Insane. I've gotten execs to work in the past, so that makes this one a little heavier on the soul-crushing side of things.
Please help.
Jason