No such thing as a small change | |
PerlMonks |
WIN redirecting STDOUT and STDIN to new spawned CMD consoleby LanX (Saint) |
on Mar 27, 2023 at 17:52 UTC ( [id://11151268]=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Hi this question is related to Prompting for input inside IDE run (was Reading from STDIN) but I think it's worth its own thread I want a Perl script to write errors via STDERR and receive signals in the first CMD window where it's started and show/get STDOUT/STDIN in a second CMD which was spawned. For debugging/development. That's not too unheard off, the second window is similar to a GUI app which writes errors into the original console. Now I remember achieving similar things with Xterms and TTYs on Linux, but is it also easily possible with Win CMDs? Searching for "redirecting STDOUT" is always only showing >file stuff for me.
Cheers Rolf
updatefixed confusion, wrote STDERR where I meant STDIN
Back to
Seekers of Perl Wisdom
|
|