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

Re: Script outputs on screen

by oiskuu (Friar)
on Oct 24, 2013 at 17:52 UTC ( #1059526=note: print w/ replies, xml ) Need Help??


in reply to Script outputs on screen

The `` slurps all output before it returns. Read from a file handle instead.

open( my $fh, '-|', "script2 a b c" ) or die; while (<$fh>) { print; }


Comment on Re: Script outputs on screen
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-09-01 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (367 votes), past polls