name first in filename

This commit is contained in:
Nico Schottelius 2019-03-21 20:39:42 +01:00
parent d146b8a66b
commit c95cb4ce3a

View file

@ -11,7 +11,7 @@ host=$1
name=$2
now=$(date +%F-%H%M)
filename=${now}-${name}-${host}.pcap
filename=${name}-${now}-${host}.pcap
intf=${host}-eth0
mx "$host" tcpdump -ni ${intf} -w "${filename}"