First time here? Check out the FAQ!
answered 2018-08-01 16:11:55 +0000
Use the -a autostop parameter, e.g.
-a
tshark -i 1 -w test.pcap -a duration:60
To stop after 60 seconds. See the manpage (or the -h output) for tshark for more info.
-h