I am trying to execute a shell command via:
<php echo shell_execute("tac /home/kusmuk/access-logs/kusmuk.org"); ?>
But it does not give any output. What could be the reason?
Although it does not work, the following lines work as expected:
<php echo shell_execute("ls -al triogrup.com"); ?>
//outputs: -rw-r----- 2 root kusmuk 28640 Aug 19 17:44 kusmuk.org
<php echo shell_execute("pwd"); ?>
//outputs: /home/kusmuk/public_html