Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 |");
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 studying the Monastery: (8)
As of 2014-10-02 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (66 votes), past polls