Hi,
I'm using PHP's shell_exec function to call a bash script on my server.
shell_exec("bash -x /tesladata/isetools/0-extractbytickerforweb.bash $ticker $isedate > /t24alv2/iseoutput/$ticker-$isedate-$thistime.log &");
Now, I previously had the command running from a CGI script ("bash -x...") and it was much faster (instantaneous). Now it takes a painfully slow time for the script to run (> 10sec) and for the resulting page to render.
Any ideas why this is so slow? I'd still like to run the bash script from PHP and not CGI, since my entire site is being converted to PHP. Perhaps another function is more suitable? Any ideas would be appreciated.