Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: open3 buffering in linux vs. os x

by tilly (Archbishop)
on Jan 08, 2009 at 22:08 UTC ( [id://735033]=note: print w/replies, xml ) Need Help??


in reply to open3 buffering in linux vs. os x

You are Suffering from Buffering. You can, as zentara said, make your filehandles unbuffered. That is a good first step. If it works, then great. However there is a real possibility, and this could well be OS dependent, that ProFit itself is detecting whether it is on a terminal, and buffers output if it is not. In that case you will need to provide it with a terminal. Which Expect can allow you to do.

Replies are listed 'Best First'.
Re^2: open3 buffering in linux vs. os x
by Lexicon (Chaplain) on Jan 08, 2009 at 22:36 UTC
    Yeah, zentara's trick didn't work, so I suspect ProFit is being clever. I'm going to just let the script run for this round but I'll look into Expect when I have more time. Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found