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
tcpdump
You can use
watch tcpdump -i eth0 'port 8080' -w myfile
This will run every 2 seconds.