Revision 5d788161
Added by Scott Ullrich over 14 years ago
usr/local/www/diag_packet_capture.php | ||
---|---|---|
194 | 194 |
<?php |
195 | 195 |
|
196 | 196 |
/* check to see if packet capture tcpdump is already running */ |
197 |
$processcheck = (trim(shell_exec('/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep $fn | /usr/bin/grep -v pflog')));
|
|
197 |
$processcheck = (trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep {$fn} | /usr/bin/grep -v pflog")));
|
|
198 | 198 |
|
199 | 199 |
$processisrunning = false; |
200 | 200 |
|
Also available in: Unified diff
When using ' variables are not expanded. Use double quotes so that the variable is exanded