This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi folks;

I am automating some tests that use wireshark. I will switching to tshark so the tests can be batched.

Each test will perform a capture, perhaps with a unique capture filter. How do I "terminate" the tshark process once I've captured 1000 packets (just an example), so that I can create a new tshark process for my next test ?? If a set a capture filter to "stop capturing" after 1000 packets, will that terminate the tshark process automagically ??

thanks wk

asked 17 Feb '12, 08:23

wakelt's gravatar image

wakelt
13101013
accept rate: 0%


Yes.

e.g. use -c 1000 to stop after 1000 packets.

permanent link

answered 17 Feb '12, 08:41

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7

question asked: 17 Feb '12, 08:23

question was seen: 1,864 times

last updated: 17 Feb '12, 08:41

p​o​w​e​r​e​d by O​S​Q​A