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

Auto Start Wireshark Linux

0

Hello,

I am fairly new to Wireshark and need some help. In the past I have installed Wireshark on Windows, created a scheduled task, that ran a command similar to this: c:\Program Files\Wireshark>tshark -i 1 -a duration:3600 -w c:\WiresharkCapture\test

What this did was at a specified time, it would start a Wireshark scan and break it up into a bunch of files every so many minutes and then dump it into a folder.

This worked great. However, I am on a Linux (Debian) machine, and don't know how to go about creating the same type of results. Can someone please help?

Thank you.

asked 19 Apr '16, 10:34

darmstrong's gravatar image

darmstrong
6112
accept rate: 0%


One Answer:

0

and don't know how to go about creating the same type of results.

You would do (almost) the same as on Windows, with the difference, that the scheduler on Linux is cron.

https://help.ubuntu.com/community/CronHowto

Please read that and then add a cron job with similar tshark parameters as shown in your question. You'll have to change the path to something Linux like (-w /var/tmp/test).

Regards
Kurt

answered 19 Apr '16, 13:29

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 19 Apr '16, 13:29