Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Autoflushing revisited.

by tedrek (Pilgrim)
on Jul 11, 2003 at 16:35 UTC ( #273465=note: print w/replies, xml ) Need Help??

in reply to Autoflushing revisited.

If I remember correctly, $| sets the currently selected handle to autoflush ie. STDOUT. This means TCPDUMP is not set to autoflush, and even if it was it only is automatic when writing to it. The problem is you can't make grep and/or tcpdump autoflush by setting $|, so you're program is writing to the screen as soon as it gets the information but that takes a bit because tcpdump/grep are buffering it. Take a look at the command line args for grep/tcpdump and see if you can turn off buffering.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://273465]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-09-17 18:55 GMT
Find Nodes?
    Voting Booth?

    No recent polls found