run shell command with php
I want to run few shell commands with PHP. I need to run lsof -i :<port_no> and kill all the process running on that port number..
$output = shell_exec('lsof -i :8080');
but it did not return any results. however the command "ps -x" return results successfully..
What could be the issue..