Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Autoflushing revisited.

by tedrek (Pilgrim)
on Jul 11, 2003 at 16:35 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found