F
Frank Millman
Hi all
I understand that StringIO creates a file-like object in memory.
Is it possible to invoke another program, using os.system() or
os.popen(), and use the < redirect operator, so that the other program
reads my StringIO object as its input?
I will provide more details if required, but hopefully this is enough
for a simple yes or no answer, and if so, how.
BTW, I have tried using popen2() and passing my data via stdin, but the
other program (psql) does not react well to this - again, I will give
more info if necessary.
Thanks
Frank Millman
I understand that StringIO creates a file-like object in memory.
Is it possible to invoke another program, using os.system() or
os.popen(), and use the < redirect operator, so that the other program
reads my StringIO object as its input?
I will provide more details if required, but hopefully this is enough
for a simple yes or no answer, and if so, how.
BTW, I have tried using popen2() and passing my data via stdin, but the
other program (psql) does not react well to this - again, I will give
more info if necessary.
Thanks
Frank Millman