Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Basic interaction with another program Date: Wed, 4 May 2011 16:52:58 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 23 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reader1.panix.com 1304527978 19278 64.122.56.22 (4 May 2011 16:52:58 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 4 May 2011 16:52:58 +0000 (UTC) User-Agent: slrn/pre0.9.9-102 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4628 On 2011-05-04, Matty Sarro wrote: > On Wed, May 4, 2011 at 12:34 PM, ETP 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" > http://www.noah.org/wiki/pexpect Seriously? Yellow on brown text? -- Grant Edwards grant.b.edwards Yow! When this load is at DONE I think I'll wash it gmail.com AGAIN ...