mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
fix packet capture. php5 apparently doesn't like " with shell_exec
This commit is contained in:
parent
9f007e8c10
commit
f426f89e72
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user