Ethereal-users: RE: [ethereal-users] write to file

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

From: Baskar Pathmanathan <bpathman@xxxxxxxxxxxxxx>
Date: Fri, 1 Sep 2000 14:25:54 -0400
I am actually running RedHat Linux 6.2 on Intel 486dx-100!  Guess I didn't
wait for tethereal to capture 4096 bytes and thus the file size appeared
zero.  So is there something I can do so that the output doesn't get
buffered???

thanks
baskar

-----Original Message-----
From: Gilbert_Ramirez@xxxxxxxxxx [mailto:Gilbert_Ramirez@xxxxxxxxxx]
Sent: Friday, September 01, 2000 1:30 PM
To: Baskar Pathmanathan
Cc: ethereal-users@xxxxxxxx
Subject: Re: [ethereal-users] write to file




Tethereal does not buffer output, it writes it immediately. What you're
probably
seeing is a side-effect of buffering from the stdio routines in C library.
By default output is buffered; for example, on my Linux system, data is
written
to the file every 4096 bytes. Once you stop tethereal, any remaining
data is flushed out of the buffer to the file, too.

--gilbert

Baskar Pathmanathan <bpathman@xxxxxxxxxxxxxx> on 09/01/2000 12:11:50 PM

To:   ethereal-users@xxxxxxxx
cc:    (bcc: Gilbert Ramirez/Tivoli Systems)
Subject:  [ethereal-users] write to file




Hi there,

I am using tethereal[the command line version] with a capture filter and
writing the output to a file with the '-w' switch but tethereal doesn't dump
to the file till I kill the tethreal process.  I notice the size of the
output file to be zero till I actually kill tethereal.

Wondering if there is any way I could get it to dump to the file while
capturing itself.  This way I could see if there are any packets that match
the filters ....

thanks
baskar