stdin, out of a spawnv process?

Fredrik Lundh fredrik at pythonware.com
Mon Oct 11 14:52:56 EDT 1999


Brian Haskin <haskin at ptway.com> wrote:
> Is there a way to write to the stdin and read from the stdout of a
> process launched with os.spawnv()?

afaik, no.

you can use dup and friends to redirect
to ordinary files, in the usual way.

or you might be able to find something in
the pythonwin distribution; you can surely
do this on the Windows API level, using
things like CreatePipe, SetStdHandle, etc.
not entirely trivial, though.

</F>

coming soon:
http://www.pythonware.com/people/fredrik/librarybook.htm





More information about the Python-list mailing list