Hi I want to capture traffic with tcpdump and I want to have a script that get as input a time and start capturing traffic with tcpdump and after the time stop the capturing. can you help that how set for tcpdump or for a shellscript??? asked 08 Jun '14, 08:21 mosa |
One Answer:
You don't need any script, if the following simple method is good enough for you. The first command will schedule tcpdump at 15:30, using the command at (should be available on any Unix like system).
The second command will schedule the 'end' of tcpdump, by simply killing all running tcpdump processes 5 minutes later (15:35).
atq will show the jobs
And
If you need a solution for a more complex environment, you'll have to write a shell script that gets started with the Regards answered 12 Jun '14, 06:31 Kurt Knochner ♦ edited 12 Jun '14, 06:47 |