There's more than one way to do things | |
PerlMonks |
Re^2: Win32::Process::Create fails when i use ">" to redirect the screen output to a fileby Anonymous Monk |
on Aug 28, 2012 at 18:19 UTC ( [id://990295]=note: print w/replies, xml ) | Need Help?? |
tool.exe is not a shell, it isn't processing "> log.txt 2>&1" so stop giving it that, it doesn't know what to do with that information The program you want to call is cmd.exe, read more at help cmd and Win32::Process redirect CMD output to text file
In Section
Seekers of Perl Wisdom
|
|