Expect -- or popen2 -- or what?
Magnus Lie Hetland
mlh at idi.ntnu.no
Wed Mar 14 15:22:30 EST 2001
I'm trying to communicate with an interactive program
which seems to be a bit reluctant to flush its
output... So when I use popen2, things just seem
to hang. It seems that expy and PIPE are both quite
out of date ... I've seen ExpectPy and it seems
interesting, but perhaps a bit more than I really need.
Is there a standard way of handling this? I can handle
the parsing of the output easily myself -- I just want
to get my hands on it :)
--
Magnus Lie Hetland http://www.hetland.org
"Reality is what refuses to disappear when you stop
believing in it" -- Philip K. Dick
More information about the Python-list
mailing list