How to respond to a confirmation prompt automatically

Coby firefoxxer at gmail.com
Fri Jan 12 15:05:24 EST 2007


Just to give you some background about my problem:

I execute os.system(command), where command is a string.

On the command line in windows, I get:

"Continue, and unload these objects? [no]"

I need to respond 'y' to continue, but I am uncertain on how to output
the 'y' automatically.


Thanks in advance.




More information about the Python-list mailing list