use new format
@@ -10,7 +10,7 @@ FILTER="$5"
if [ $ITERS -gt "0" ]; then
COUNTER=0
while [ $COUNTER -lt $ITERS ]; do
- dt=`date '+%Y-%m-%d_%H_%M_%S'`
+ dt=$(date '+%Y-%m-%d_%H_%M_%S')
tcpdump -ni $NIC -s65535 -w 'trace_'"$ID"'_'"$dt"'.pcap' $FILTER &
pid=$!
sleep $INTERVAL
@@ -21,7 +21,7 @@ if [ $ITERS -gt "0" ]; then
else # else do the capture until killed
while true
do
- dt=`date '+%Y-%m-%d_%H_%M_%S'`
+ dt=$(date '+%Y-%m-%d_%H_%M_%S')
tcpdump -ni $NIC -s65535 -w 'trace_'"$ID"'_'"$dt"'.pcap' $FILTER &
pid=$!
sleep $INTERVAL
