How to automate user input at the command prompt?

Gerhard Fiedler gelists at gmail.com
Fri Jul 21 18:56:48 EDT 2006


On 2006-07-21 19:39:52, gert365 at yahoo.com wrote:

> Cameron Laird wrote:
>> I suspect there are easier approaches--but probably won't have time
>> before Monday to explain.  For now, I counsel the original poster
>> not to be discouraged.
> 
> Although I have not find the solution I need yet, thanks to the
> suggestions so far I'm actually a bit more optimistic than before that
> there might actually be a way to do what I want.

Until Cameron explains... maybe you can work out something with pipes (on
the program's stdin, stdout and stderr). Not sure how that would look like
in Python, though, and it almost for sure won't work with all command line
programs. (There are different ways how a program can read user input.)

Gerhard




More information about the Python-list mailing list