Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by ikegami (Patriarch)
on Nov 07, 2009 at 23:21 UTC ( [id://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.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://805692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-03-28 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found