Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4628

Re: Basic interaction with another program

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 <invalid@invalid.invalid>
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 <ips09a$iqe$1@reader1.panix.com> (permalink)
References <c6e05be5-a863-43c2-827a-a91d369e3ef6@d26g2000prn.googlegroups.com> <mailman.1156.1304527192.9059.python-list@python.org>
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

Show key headers only | View raw


On 2011-05-04, Matty Sarro <msarro@gmail.com> wrote:



> On Wed, May 4, 2011 at 12:34 PM, ETP <matthew.moorland@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"

> 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 ...

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Basic interaction with another program ETP <matthew.moorland@gmail.com> - 2011-05-04 09:34 -0700
  Re: Basic interaction with another program Matty Sarro <msarro@gmail.com> - 2011-05-04 12:39 -0400
    Re: Basic interaction with another program Grant Edwards <invalid@invalid.invalid> - 2011-05-04 16:52 +0000
      Re: Basic interaction with another program Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-04 11:30 -0600
        Re: Basic interaction with another program Grant Edwards <invalid@invalid.invalid> - 2011-05-04 18:07 +0000
  Re: Basic interaction with another program Terry Reedy <tjreedy@udel.edu> - 2011-05-04 15:15 -0400
    Re: Basic interaction with another program ETP <matthew.moorland@gmail.com> - 2011-05-04 15:21 -0700

csiph-web