FAQ
Hi there,

can anybody help me on this: I want to communicate bidirectionally with a
gnuplot session I spawned from python.

I.e.
* popen3 for input/output/stderr
* write one command
* read and evaluate result
* write next command
* read and evaluate result
etc.

Problem: file.readline does block if there is nothing to read and select()
does not seem to do anything useful either (it always tells me that there
is data to read, even though there is none.)

Unfortunately, I cannot predict in advance how much to read, as
errormessages and other data comes through the same pipe and have to be
discarded somehow.

Anybody out there who can help me on that?

Thanks,
Nobbi

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedJun 3, '03 at 12:50p
activeJun 3, '03 at 6:12p
posts4
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase