XP is just a number | |
PerlMonks |
Merging two pipesby cmburns (Acolyte) |
on Oct 24, 2001 at 12:43 UTC ( [id://121027]=perlquestion: print w/replies, xml ) | Need Help?? |
cmburns has asked for the wisdom of the Perl Monks concerning the following question:
Hi there! I have some trouble understanding how to redirect input from one pipe to another. Here is what I want to do: I open one command and process its output in a while loop. On some condition I open another command inside this while loop and I want its output to appear in the same pipe as the output of the first command. Ok, here's some pseudo-code to make things a bit more clear:
(I know there are missing close and or die statements.) Both scripts run over some period of time and give progress information (like 50% done) as their output, so it's important to monitor output from both scripts simultaneously. Any ideas? Is this possible? Thanks alot for your help!
Back to
Seekers of Perl Wisdom
|
|