in reply to Re^3: Autoflush fails
in thread Autoflush fails

Really appreciate your help :-)

The results of "sudo tcpdump" are redirected to STDOUT right away.

,"sudo /usr/sbin/tcpdump -i eth3 host 226.1.109.109 2> +/dev/null"

However, the results are buffered if I pipe it to "perl -pe 1"

,"sudo /usr/sbin/tcpdump -i eth3 host 226.1.109.109 2> +/dev/null | perl -pe 1"

Any alternative to a file handle to get the sudo resluts from a pipe?

Replies are listed 'Best First'.
Re^5: Autoflush fails
by Anonymous Monk on May 31, 2012 at 05:31 UTC