time limit for tshark capturing
I am using tshark to capture my network traffic and I want to limit the measurement time.
Tshark runs in a bash script to automatise the measurement, just like this:
tshark -i 1 -w test.pcap
Now I want to stop the measurement after X seconds.
How can I do that?