문제

I am trying to capture traffic with tshark from the CLI with something like this:

tshark -i 1 -w Outputfile.pcap

If I execute this command the prompt does not return as the tshark provides me with information on packet count and saves the packet info in the file "Outputfile.pcap". What I want is to get the prompt back, if possible. So, that I could execute more commands without opening up another terminal on the remote server. I have tried using the "&" at the end to run the process in background, the command prompt returns but the packet count continues to overwrite the commands that I am typing and I can not see anything :(

Does anyone know a way to resolve this issue?

도움이 되었습니까?

해결책

Use tshark -i 1 -w Outputfile.pcap -q & instead. The -q flag says to be super-quiet and & will run the process in the background so that the command prompt will not get overwritten

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top