On Wed, May 4, 2011 at 10:52 AM, Grant Edwards <invalid@invalid.invalid> wrote: > On 2011-05-04, Matty Sarro <msa...@gmail.com> wrote: >> On Wed, May 4, 2011 at 12:34 PM, ETP <matthew.moorl...@gmail.com> 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