help with popen, one-way IPC.
Brian Alexander
crystalc at interlog.com
Mon Oct 2 00:58:20 EDT 2000
Hello;
I have a program that might possibly be writing to stdout (not a python
program) and would like to use redirection in Python to collected the
output. I'm having a little trouble with the call to popen(), though.
I thought it was this:
otherapp_stdout = popen( "appname", "r")
while otherapp_stdout.readline != "\n"
# do stuff with each line.
Is this the right idea. Communication only needs to be one way.
Many thanks in advance,
Brian.
More information about the Python-list
mailing list