Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Win32::Process::Create fails when i use ">" to redirect the screen output to a file

by Anonymous Monk
on Aug 28, 2012 at 02:29 UTC ( #990116=note: print w/ replies, xml ) Need Help??


in reply to Re: Win32::Process::Create fails when i use ">" to redirect the screen output to a file
in thread Win32::Process::Create fails when i use ">" to redirect the screen output to a file

Any help would be appreciated for above question....

notepad.exe is not a shell, it doesn't know what to do with "> log.txt 2>&1"

If you want to invoke the shell, try using cmd.exe or simply undef for the program name

Read CreateProcess function, Behind the GUI lives the Shell and/or Windows Command Line Interpreter|Shell|DOS Prompt|Batch Files|Scripting


Comment on Re^2: Win32::Process::Create fails when i use ">" to redirect the screen output to a file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-10-22 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls