fix packet capture. php5 apparently doesn't like " with shell_exec

This commit is contained in:
Chris Buechler 2010-01-13 16:33:28 -05:00
parent 9f007e8c10
commit f426f89e72

View File

@ -72,7 +72,7 @@ if ($_POST) {
} elseif ($_POST['stopbtn']!= "") {
$action = "Stop";
$processes_running = trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep $fn | /usr/bin/grep -v pflog"));
$processes_running = trim(shell_exec('/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep $fn | /usr/bin/grep -v pflog'));
//explode processes into an array, (delimiter is new line)
$processes_running_array = explode("\n", $processes_running);