diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-04-07 12:00:32 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-04-07 12:00:32 -0400 |
commit | 5d7881615de2fbeb44c1f3ab8903b52969538f9c (patch) | |
tree | cc3aaa160645e06fb6b7b636ba3f53d07110d579 | |
parent | c76fc19f32a34b91ece34740593f86978f4a8911 (diff) | |
download | pfsense-5d7881615de2fbeb44c1f3ab8903b52969538f9c.zip pfsense-5d7881615de2fbeb44c1f3ab8903b52969538f9c.tar.gz |
When using ' variables are not expanded. Use double quotes so that the variable is exanded
-rw-r--r-- | usr/local/www/diag_packet_capture.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index 8a9cb41..02d8217 100644 --- a/usr/local/www/diag_packet_capture.php +++ b/usr/local/www/diag_packet_capture.php @@ -194,7 +194,7 @@ include("fbegin.inc"); <?php /* check to see if packet capture tcpdump is already running */ - $processcheck = (trim(shell_exec('/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep $fn | /usr/bin/grep -v pflog'))); + $processcheck = (trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep {$fn} | /usr/bin/grep -v pflog"))); $processisrunning = false; |