Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: real time open(HANDLE,"cmd |");

by ikegami (Pope)
on Nov 07, 2009 at 23:21 UTC ( #805692=note: print w/ replies, xml ) Need Help??


in reply to Re: real time open(HANDLE,"cmd |");
in thread real time open(HANDLE,"cmd |");

About the only thing you can do is fool the program into thinking its connected to a tty rather than a pipe. That will cause most programs to use line buffering. Look into using a pseudo tty. IPC::Run can help there.


Comment on Re^2: real time open(HANDLE,"cmd |");
Replies are listed 'Best First'.
Re^3: real time open(HANDLE,"cmd |");
by Anonymous Monk on Dec 28, 2012 at 13:40 UTC
    A windows console handle (CONIN$, CONOUT$) is not a pipe handle, it is a character device file handle (TTY handle) to the console input buffer or a console output buffer.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2015-07-31 11:55 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 (276 votes), past polls