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


I would like to create a task that closes wireshark portable and saves the data automatically without any interaction from the user.

What would my script look like ?

I appreciate everybody's input.

Thank You,


asked 28 Feb '17, 12:57

DrunkenChinchila's gravatar image

accept rate: 0%

edited 28 Feb '17, 12:58

Your question is very general. Your capture command is going to highly depend upon what you're trying to capture and for how long. Under what conditions should it stop?

In any case, you should probably be looking into using a command-line tool such as dumpcap instead of Wireshark. To help figure out your dumpcap command, I would suggest that you start by reading the dumpcap man page or dumpcap section of the Wireshark User Guide for usage information and then determine which options best fit your capturing needs.

permanent link

answered 01 Mar '17, 13:40

cmaynard's gravatar image

cmaynard ♦♦
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 28 Feb '17, 12:57

question was seen: 876 times

last updated: 01 Mar '17, 13:40

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