Basic interaction with another program

Ian Kelly ian.g.kelly at gmail.com
Wed May 4 13:30:16 EDT 2011


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



More information about the Python-list mailing list