Re: trying to read from pipe

Mike Tibbs (tibbs@dopey.si.com)
Thu, 1 Sep 1994 13:14:53 GMT

Thanks for the replies.

Solution:
command = 'ls'
fd = os.popen(command, 'r')
data = fd.read(BUFSIZE)
# ^^^^^^^

I missed the distinction between file _object_ & file _descriptor_
(probably because it was not emphasized in the Ref Manual that I was
using). But it was explained elsewhere.

-Mike Tibbs