Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: tracing system calls a perl script is making

by shmem (Canon)
on May 31, 2013 at 17:56 UTC ( #1036281=note: print w/ replies, xml ) Need Help??


in reply to Re^2: tracing system calls a perl script is making
in thread tracing system calls a perl script is making

Unfortunately I think my reading stdout with pipes is flawed!

Not necessarily so. More probably you are "suffering from buffering":

  • printing to the terminal is line buffered
  • printing elsewhere is block buffered

Try inserting

$| = 1;

at the top of your program. See perlvar.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-06-27 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (348 votes). Check out past polls.