jake7176 has asked for the wisdom of the Perl Monks concerning the following question:
Hello, Perl Monks
I am in need of some advice and I hope you can provide it to me.
I am trying to run a command using backticks:
What I want to do, is store the output from monitor. However, because monitor provides a continuous stream of output (updating every second) my program just hangs.
I know this is because backticks waits until the program has finished before continuing, but this won't ever finish. I have also tried using:
But that just provides me the return code. Which isn't needed.
Any help would be wonderful, thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting output from continuous program
by Corion (Patriarch) on Oct 18, 2016 at 15:32 UTC | |
|
Re: Getting output from continuous program
by Discipulus (Canon) on Oct 18, 2016 at 15:39 UTC |