Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Script outputs on screen

by oiskuu (Hermit)
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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059526]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-06-23 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (549 votes). Check out past polls.