[Tutor] "standard output: Broken pipe"
Alan Gauld
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
replacing os.popen...
Or look in the OS topic of my tutorial near the end...
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list