feeding a prompt with python

Peter Hansen peter at engcorp.com
Fri Jun 28 14:53:00 CEST 2002

thomas wrote:
> is there a way with python to feed a prompt with data? i call sth. with
> system($some_cmd) and the cmd gives me a prompt which of course waits
> for user input. however i want to automate this, is there a way?
> i browsed through the essential reference 2nd edt. but didn't find anything.

Maybe you could post an actually code sample, since "system($some_cmd)"
is not Python code.  We need more information to answer well.


More information about the Python-list mailing list