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

TShark saving interface list into file doesn’t work

0

Hi,

I have problem with tshark when I'm trying to save interface list into a file. I used comand: tshark.exe -D > file.txt and file was created but it is empty. In console I can see list of my interfaces. I'm using wireshark 1.6.4 and have this problem. On wireshark 1.4.2 all works fine.

asked 06 Dec '11, 05:02

Maniek's gravatar image

Maniek
6113
accept rate: 0%


One Answer:

4

tshark outputs the interface info on the standard error stream (stderr). To redirect this to a file use the redirection operator "2>", e.g. tshark.exe -D 2> file.txt.

I have no idea if this changed after 1.4.2, but is the current situation.

answered 06 Dec '11, 06:54

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%