No such thing as a small change | |
PerlMonks |
capturing stdout in real timeby dhofmeister (Initiate) |
on Aug 20, 2012 at 18:49 UTC ( [id://988491]=perlquestion: print w/replies, xml ) | Need Help?? |
dhofmeister has asked for the wisdom of the Perl Monks concerning the following question:
(ah, another stdout question!)
i'm using perl 5.10 and IPC::Run3 (but it's not necessarily a requirement).
i'm writting a perl program that (of course) calls "other programs". all is working reasonably well *except* for getting the stdout of the "other programs" -- in a timely manner. what i get is all the stdout at once when the "other program" ends. i'd rather get the stdout as it occurs.
when i call run3, i am saying "run3 ....\&print_stdout" (which is a simple subroutine).
is there a(n easy) way around this?
Back to
Seekers of Perl Wisdom
|
|