Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: running a cmd in background and capturing the output

by Corion (Pope)
on Oct 09, 2013 at 10:27 UTC ( #1057527=note: print w/ replies, xml ) Need Help??


in reply to running a cmd in background and capturing the output

If you want to capture the output of a program, backticks are the easiest approach (Quote Like Operators. If you want to read the program output before it has finished running, look at the pipe-form of open.

If for some reason you are tied to using Proc::Background, launch the other process and redirect its output to a file. In your main program, read from that file.


Comment on Re: running a cmd in background and capturing the output

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-11-24 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (135 votes), past polls