There's more than one way to do things | |
PerlMonks |
Re^2: WIN redirecting STDOUT and STDIN to new spawned CMD consoleby LanX (Saint) |
on Mar 28, 2023 at 14:00 UTC ( [id://11151292]=note: print w/replies, xml ) | Need Help?? |
Thanks, I didn't know it's that complicated. My approach to Win is to mentally map concepts I know from Linux, even after years. And this doesn't always fit. I also kind of remembered that a child process is inheriting STD-IN/OUT/ERR from the parent. So one of my ideas was that probably it was possible than an app spawns a console as child with "cloned" STDIN and STDOUT, while STDERR is kept to the parent's console.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|