Each time, when I manually run tcpdump
, I have to use Ctrl+C to stop it. Now I want to schedule my tcpdump
with cronjob and I onl
The approach that worked best for me on Ubuntu 14.04
sudo -i
crontab -e
and then add the line
30 17 * * * /usr/sbin/tcpdump -G 12600 -W 1 -s 3000 -w /home/ubuntu/capture-file.pcap port 5060 or portrange 10000-35000
Notes