Ethereal-dev: Re: [Ethereal-dev] In current CVS Tethereal, "-q" suppresses packet output when
On Mon, May 31, 2004 at 01:49:02AM -0700, Guy Harris wrote:
> It should probably also suppress packet output if you're capturing
> without "-w",
It turns out my change already does that - so you can use "-z" and "-q"
when capturing, so that you only get a printed summary of the statistics
from a capture.
Unfortunately, there's no way to suppress printing of the packets
*without* suppressing the packet count, so you can only find out how
many packets have been gathered for the statistics if your OS supports
SIGINFO (as is the case with various BSDs, including OS X) and your
"status" character is set (which it appears *not* to be by default, at
least on some BSDs, so you have to set it to ^T, or whatever, to use
it), so you can type that character to get statistics.
Equally unfortunately, the dissection wasn't done if printing was
suppressed; I've checked in a fix to force the dissection to be done if
there are taps.
Should there be a *separate* command-line flag to suppress packet
output, so that you can get the packet count without getting the packet
information as well? (Yes, you could save to "/dev/null" with "-w", but
that's a bit of a hack.)
> and either give a warning or suppress packet output if
> you're capturing with "-w" and "-S" (as using "-q", "-S", and "-w" would
> just be equivalent to "-w", with "-S" turning packet output on and "-q"
> turning it back off again).
Any votes for which it should do?