Ethereal-users: Re: [Ethereal-users] Run etheral from command lines

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 22 Aug 2005 09:09:06 -0700
Joao Rosa wrote:

I need to do a file script that run ethereal from command line. Please tell me the parameter to put in ethereal to decode the protocol.

For example: ethereal file.in file.out (what parameter I need to put? For ethereal translate file.out to a text file with protocol decoded).

The first thing you want to put on the command line is the letter "t" immediately before "ethereal". :-)

I.e., you would do that with Tethereal, not with Ethereal.

I assume you mean "translate file.in to a text file with protocols decoded", not 'translate file.out". If so, you would do

	tethereal -V -r file.in >file.out

which will read "file.in" and write to its standard output - which is redirected to "file.out" with ">file.out" - a compleete dissection of all the packets in "file.in".