- Reaction score
- 888
So I'm working on some PHP code here and I have the following:
$string = shell_exec("ps aux | grep ntp");
Basically just trying to find a certain running process (ntp as a filler right now).
I get the following error:
sh: ntp: command not found
No idea why it's doing that. Something about the pipe in the command seems to be making it angry. Has anyone run into this and knows a solution?
$string = shell_exec("ps aux | grep ntp");
Basically just trying to find a certain running process (ntp as a filler right now).
I get the following error:
sh: ntp: command not found
No idea why it's doing that. Something about the pipe in the command seems to be making it angry. Has anyone run into this and knows a solution?