Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 about the Monastery: (6)
As of 2014-07-31 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (255 votes), past polls