Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: nonblocking char reads from OUTPUT stream from open3

by Eradicatore (Monk)
on Dec 14, 2002 at 23:07 UTC ( [id://219904]=note: print w/replies, xml ) Need Help??


in reply to Re: nonblocking char reads from OUTPUT stream from open3
in thread nonblocking char reads from OUTPUT stream from open3

Thanks for the reply. I think I already set this. You say autoflush on the filehandle, but I'm not sure that is exactly what you meant. I don't think you can set autoflush on a specific filehandle can you? I just set $| to 1.

Anyway, this still wasn't solving the problem. I started out actually with getc(), because I figured that with autoflush on, there would be no way I wouldn't get all the chars up to the point where this seperate process typed out the line (without a carriage return) with the wait for a "y" or "n". But for some reason, just on that one line, the getc() stopped working it seemed.

Justin

  • Comment on Re: Re: nonblocking char reads from OUTPUT stream from open3

Replies are listed 'Best First'.
Re: Re: Re: nonblocking char reads from OUTPUT stream from open3
by dakkar (Hermit) on Dec 16, 2002 at 17:18 UTC

    You can set autoflush on a single handle:

    use IO::Handle; autoflush FH 1; # first way FH->autoflush(1); # OO-ish way

    But anyway, that's not what you need (I just tried). I just don't know how to do it... sorry

    -- 
            dakkar - Mobilis in mobile
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found