Hello,
I am trying to execute a php shell_exec command to list c files on my /tmp dir
from command line
ls -l /tmp | grep ".c"
works fine .. reporting
-rw------- 1 nobody nobody 0 Jun 3 06:09 test.c
-rw------- 1 nobody nobody 0 Jun 3 06:09 test2.c
using php
<?
$checkc= shell_exec('ls -l /tmp | grep "\.c" 2>&1');
echo "<br>$checkc";
?>
$checkc returns nothing ...
any help ?
Thank you