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 reply to Re: running a cmd in background and capturing the output
by Corion
in thread running a cmd in background and capturing the output
by PBeginner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |