shell_exec() problems
Posted: Tue Jul 31, 2007 4:13 am
Hi every body,
Actually i have full access to the shell but running this code in a php file on xampp server that i have on the linux, i am not getting the output even when i am trying to pipe the output to an html file .
<code>
shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -F html>akadi_icho.html");
</code>
but when i am running this code on the shell directly :
<code>
cat `find ./logs -name access.log*` | grep akadi_icho| ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -F html>akadi_icho.html
</code>
it is working perfectly.
so i have tried to run the code in parts :
<code>
shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho");
</code>
this part is working, but when i am running the whole part i am not getting any output, though the calamaris path is correct .
so plz can u help me to figure out the problem.
Actually i have full access to the shell but running this code in a php file on xampp server that i have on the linux, i am not getting the output even when i am trying to pipe the output to an html file .
<code>
shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -F html>akadi_icho.html");
</code>
but when i am running this code on the shell directly :
<code>
cat `find ./logs -name access.log*` | grep akadi_icho| ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -F html>akadi_icho.html
</code>
it is working perfectly.
so i have tried to run the code in parts :
<code>
shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho");
</code>
this part is working, but when i am running the whole part i am not getting any output, though the calamaris path is correct .
so plz can u help me to figure out the problem.