I am having an issue with executing a perl script from php using the shell_exec() function.
This is what I have tried (and it has worked before).
$perl = shell_exec("/usr/bin/perl cbh_script_clean.pl");
echo ($perl);
This will not work as $perl does not contain anything after this is executed.
Thoughts?
All help is appreciated!
Thanks.
/usr/bin/perl cbh_script_clean.plstraight from the command line?2>&1after the command. Chances are the pathname to the perl script is just wrong. Also have a look into the error.log, which otherwise contains the according message.