[Tutor] "standard output: Broken pipe"
alan.gauld at btinternet.com
Tue Oct 23 00:41:04 CEST 2007
"James" <jtp at nc.rr.com> wrote
> I'm not really sure how I would replace 'yes', though, in this
> situation. Thoughts?
Just read the output of Popen from stdout and respond
with a 'y' to stdin until the process finishes.
See the example in the documentation of Popen
Or look in the OS topic of my tutorial near the end...
Author of the Learn to Program web site
More information about the Tutor