On Wed, May 4, 2011 at 10:52 AM, Grant Edwards <[email protected]> wrote: > On 2011-05-04, Matty Sarro <[email protected]> wrote: >> On Wed, May 4, 2011 at 12:34 PM, ETP <[email protected]> wrote: >>> I have a dos program (run in a window) that I would like to control >>> with a script. > >> Look into the pexpect library, it'll make this easy as punch. > > I don't think pexpect is going to do the OP much good. Quoting from > the web page: > > "Pexpect does not currently work on the standard Windows Python"
The OP said he was running Linux. I gather the DOS program is being run in DOSBox or something similar. -- http://mail.python.org/mailman/listinfo/python-list
