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 could do it like this:
tcpdump -i eth0 'port 8080' -w myfile & pid=$! sleep 1.5h kill $pid