in reply to Autoflush fails

Try the -l (Lower-case l, as in lazy) option of tcpdump.

According to the docs,

-l Make stdout line buffered. Useful if you want to see the data while capturing it.

The -U -w - options in tcpdump make the output unbuffered.

Web search shows this article.
and commandlinefu shows a trick of chaining 2 tcpdumps to achieve this.

             I hope life isn't a big joke, because I don't get it.
                   -SNL

Replies are listed 'Best First'.
Re^2: Autoflush fails
by sophate (Beadle) on May 31, 2012 at 10:03 UTC

    thanks. problem resolved by -l :-)