??? Re: popen2 bug?

Roman Suzi rnd at onego.ru
Wed Sep 19 06:56:35 CEST 2001


On 18 Sep 2001, Quinn Dunkan wrote:

>>That is, popen2.* are nearly unusable or I am very mistaken
>>about their use.
>
>This is a unix FAQ.
>
>For number two, you can use select() or poll() and non-blocking IO, or you
>can have reader/writer threads.  Some systems will tell you how many bytes can
>be read if you fstat() a pipe, but I don't think that's portable.
>
>I've successfully used popen2 to control interactive programs before, but
>those programs typically don't use stdio.  So popen2 is usable, just not as
>useful as you might think.

I thought "grep" or "cat" aren't that interactive...
Thanks, I shall try to solve this. Probably by using temporary files
or named pipes.

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Wednesday, September 19, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Shin: A device for finding furniture in the dark." _/





More information about the Python-list mailing list