Re: Can I open and then export a file from the command line?

Gerald Combs <[email protected]> Thu, 14 Sep 2006 09:26:52 -0700
Newsgroups gmane.network.ethereal.user
Message-ID <[email protected]>
-------------------
The Ethereal project is being continued at a new site.  Please go to
http://www.wireshark.org and subscribe to [email protected].
Don't forget to unsubscribe from this list at
http://www.ethereal.com/mailman/listinfo/ethereal-users
-------------------

Linick, James (SED/WESTAR) wrote:
> -------------------
> The Ethereal project is being continued at a new site.  Please go to
> http://www.wireshark.org and subscribe to [email protected].
> Don't forget to unsubscribe from this list at
> http://www.ethereal.com/mailman/listinfo/ethereal-users
> -------------------
> 
> Is it possible to open a tcpdump file and export it to a PDML file from
> the command line?

Sure!  First, upgrade to Wireshark.  As the message above indicates,
development under the name "Ethereal" has ceased.  Then use TShark to
read the file and print to pdml:

    tshark -nr /path/to/tcpdump_file.pcap -T pdml

The TShark manual page can be found online at

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