I think that what i would do is test for the platform in a consistent way ( Sys::Hostname ) and branch the program in two cases depending on the result.
This way you can use the windows way of redirecting STD* which is Win32::Job .
In reply to Re: Safe cross-platform command execution and capture of STDOUT & STDERR
by secret
in thread Safe cross-platform command execution and capture of STDOUT & STDERR
by mattski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |