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

How to stop wireshark using command line interface in centos 6.3?

0

I have a script that I run to perform some testing and while I start that script I want to issue a command to start wireshark which I have.

Now I want to add a line at the end of the script to STOP wireshark. Can anyone guide me on how to stop wireshark in cli?

My script executes sometimes in 1 hour and sometimes in 20min so my time is not definitive.

Hope some one could help me!

Thanks

asked 28 Feb '13, 07:17

sipguy's gravatar image

sipguy
11112
accept rate: 0%


One Answer:

0

Now I want to add a line at the end of the script to STOP wireshark.

try this: killall wireshark

Regards
Kurt

answered 28 Feb '13, 09:51

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

Thanks Kurt,

But I have other users who run in the root mode so I have multiple wireshark pids which get killed by this.

IS there an alternative to it?

(28 Feb '13, 10:33) sipguy

how do you start Wireshark in your script? Can you please post that part of the script?

(28 Feb '13, 11:28) Kurt Knochner ♦

"But I have other users who run in the root mode..."

Haven't you heard you should not do that?

(28 Feb '13, 14:21) Jaap ♦