First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

capture the traffic generate by a script with unknown duration

Hi all,

I want to capture the traffic generate by a script with unknown duration. My intention is start the capture with tshark, then run the script and finally, when the script finish, stop and save the capture in a pcap file. is it possible to do? How can I do it?

Thanks in advance.

Perseo255's avatar
1
Perseo255
asked 2019-07-19 12:27:30 +0000
edit flag offensive 0 remove flag close merge delete

Comments

Do you want a scripted way to stop the capture?

grahamb's avatar grahamb (2019-07-19 12:38:45 +0000) edit
add a comment see more comments

1 Answer

0

I believe you can find the answer to your question in the answer to the question on the old Q&A site:

https://osqa-ask.wireshark.org/questions/62000/tshark-and-dumpcap-killing-nicely

SYN-bit's avatar
18.5k
SYN-bit
answered 2019-07-19 15:07:53 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer