error executing shell_exec
Posted: Wed Aug 19, 2009 10:05 am
hello, I am trying to execute a shell command via:
But it does not give any output. What could be the reason?
altough it does not work those following lines works as expected:
Code: Select all
<php echo shell_execute("tac /home/kusmuk/access-logs/kusmuk.org"); ?>altough it does not work those following lines works as expected:
Code: Select all
<php echo shell_execute("ls -al triogrup.com"); ?>
//outputs: -rw-r----- 2 root kusmuk 28640 Aug 19 17:44 kusmuk.orgCode: Select all
<php echo shell_execute("pwd"); ?>
//outputs: /home/kusmuk/public_html