How to pass a multiline arg to exec('some.exe arg')?

Ian Kelly ian.g.kelly at gmail.com
Mon May 5 13:38:17 EDT 2008


>  btw, is it necessarily to close() osql[1] in order to get res?
>  without close() the script seems is waiting for smth.
>  I'd like to get "res" in a loop:
>  write()
>  read()
>  write()
>  read()
>  ...
>  is it possible?

Yes, call flush() each time you're done writing.



More information about the Python-list mailing list