[tpm] Making IO::Handle objects "hot"

Liam R E Quin liam at holoweb.net
Sat Nov 20 20:15:49 PST 2010


On Sat, 2010-11-20 at 01:28 -0500, Digimer wrote:
> I've got a program that calls 'yum install ...'. I've set my stdout to 
> hot ($|=1;), but there is no output at all during the package download 
> stage. 

I'd investigate "expect" for this probably.

The likely answer is that you need to use a pseudo-teletype (pty) or
named pipe for I/O, so that yum doesn't buffer its output.  Expect
will do this for you.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org



More information about the toronto-pm mailing list