tcpdump-vent 143 Bytes
Newer Older
Olav Kvittem's avatar
Olav Kvittem committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash

vent=$1

shift

echo /usr/sbin/tcpdump $* >> tcpdump.log
/usr/sbin/tcpdump $* 2>&1 >> tcpdump.log &

sleep $vent

kill %1

exit 0