Ethereal-users: RE: [Ethereal-users] tethereal -l switch

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

From: Mark Zvolanek <Mark.Zvolanek@xxxxxxxxxx>
Date: Fri, 16 Feb 2001 14:21:07 +1100
Guy,
I had a similar issue with another inhouse developed DOS based NT
executable.
But when out programmer put into his C code 'flush STDOUT' after each printf
it got fixed.
So I dont believe it is NT cmd.exe buffering the output of tethereal.
Regards
|__
| Mark Zvolánek
| +612 9227 0479

"Never say 'OOPS!'  Always say 'Ah, Interesting!"


-----Original Message-----
From: Guy Harris [mailto:guy@xxxxxxxxxx]
Sent: Friday, 16 February 2001 12:12
To: Mark Zvolanek
Cc: 'ethereal-users@xxxxxxxxxxxx'
Subject: Re: [Ethereal-users] tethereal -l switch


> Hello ethereal-users,
> In NT4, command line switch '-l' (l for letter) is suppose to set STDOUT
to
> be line buffered.
> This does not appear to work,

It doesn't seem to work if you pipe it to "more", either.  (I'm assuming
here that the NT shell (cmd.exe) really sets up a Win32 pipe for a
command-line pipe, which it might not do.)

It may just be that the standard C interface that Tethereal uses to
implement "-l" ("setvbuf()" - by "standard C interface", I mean
"interface specified by the ANSI C standard") doesn't actually work with
the MSVC++ C libraries.  I'll have to experiment with a small program.