write eof without closing
Fredrik Lundh
fredrik at pythonware.com
Sun Aug 20 09:44:12 EDT 2006
cage wrote:
> I want to use a program that has a 'pipe' mode, in which you can use
> stdin to send commands to the program. I found out that, when in pipe
> mode and you are using the keyboard as input source you can do Ctrl-D to
> 'signal' the program that you have finished typing your command. The
> program parses and then performs the command, and it doesn't quit. It
> quits after 'Quit\n' + Ctrl-D
have you tried *flushing* the output stream after each command?
</F>
More information about the Python-list
mailing list