Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
good chemistry is complicated,
and a little bit messy -LW
 
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 musing on the Monastery: (13)
As of 2014-04-16 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (434 votes), past polls