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


Groups > comp.lang.python > #40981 > unrolled thread

pexpect on windows - child process of another child process - quick question

Started byZ W <mpc8250@gmail.com>
First post2013-03-09 14:00 -0800
Last post2013-03-09 14:00 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  pexpect on windows - child process of another child process - quick question Z W <mpc8250@gmail.com> - 2013-03-09 14:00 -0800

#40981 — pexpect on windows - child process of another child process - quick question

FromZ W <mpc8250@gmail.com>
Date2013-03-09 14:00 -0800
Subjectpexpect on windows - child process of another child process - quick question
Message-ID<mailman.3140.1362866447.2939.python-list@python.org>
Hi All

We have a windows application to install on console mode typing on
cygwin shell "app.exe -i console"
On Windows process window, we could see this kicks a process named ia
which in turn kicks off ia_launcher to kick off another java.exe
process.
ie

app.exe -- kick off --> ia --> kicks off --> ia_launcher --kicks off
--> java.exe

We like to use pexpect to interact with the ia_launcher process, which
seems to control the stdin/stdout of its own shell window to allow
user to enter responses.
So far, our research shows most examples are related to use of direct
child process, in this case, app.exe process interacting with pexpect.

How do we go about using pexpect to talk to app.exe's grandchild's
shell window ?

We set Don L's expect example where he could "set id $spawn_id"
between direct child processes but it's still to us how we can
accomplish our goal.

Thanks for your kind help
Sincerely

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web