Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: WIN redirecting STDOUT and STDIN to new spawned CMD console

by Corion (Patriarch)
on Mar 28, 2023 at 07:25 UTC ( [id://11151273]=note: print w/replies, xml ) Need Help??


in reply to WIN redirecting STDOUT and STDIN to new spawned CMD console

Do you really mean "CMD" as in cmd.exe or do you mean a new console window?

If you mean a console window, see Win32::Console, which allows you to create a (second) console window. I think it doesn't readily have methods to redirect STDIN/STDOUT there, but that should be fairly easy with tied filehandles.

Replies are listed 'Best First'.
Re^2: WIN redirecting STDOUT and STDIN to new spawned CMD console
by LanX (Saint) on Mar 28, 2023 at 13:05 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found