ICMP for limited time

Hi,

I am using following command:

tcpdump -i eth1 icmp[0] =8 >output.txt

i want this command to get execute for a minute only. How can we do this?

Thanks.

Try this:

tcpdump -i eth1 icmp[0] =8 >output.txt &
sleep 60; kill $!
1 Like

Thanks Subbeh.. its working perfectly the way i wanted.
:slight_smile: