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.
|
---|
In Section
Seekers of Perl Wisdom