Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 perusing the Monastery: (7)
As of 2015-07-06 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls