Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] tshark not saving file in pdml format ...

From: Christopher Maynard <Christopher.Maynard@xxxxxxxxx>
Date: Mon, 22 Oct 2012 15:52:47 +0000 (UTC)
Albretch Mueller <lbrtchx@...> writes:

> $ date; sudo tshark -i eth0 -a duration:10 -b filesize:1024 -b
> files:10 -T pdml -w
> /media/sdb1/prjx/kd/java/net/hc/root_test/test00.pdml
>  how can I fix that?

tshark -i eth0 -T pdml > test00.xml


>From the tshark man page[1]:

NOTE: -w provides raw packet data, not text. If you want text output you need to
redirect stdout (e.g. using '>'), don't use the -w option for this.

[1]: http://www.wireshark.org/docs/man-pages/tshark.html