Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 surveying the Monastery: (6)
As of 2015-07-05 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls