Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pexpect on windows - child process of another child process - quickquestion

Reply
Thread Tools

pexpect on windows - child process of another child process - quickquestion

 
 
Z W
Guest
Posts: n/a
 
      03-09-2013
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to check if Pexpect child already exist? Dave Angel Python 0 12-05-2012 08:20 AM
Changing the system clock with pexpect confuses pexpect! Saqib Ali Python 1 12-26-2011 01:51 PM
pexpect: TIMEOUT no longer clears child.before Adrian Casey Python 1 05-25-2011 09:45 AM
RE: Pexpect getting a defuct process Baillargeon, Sonny Python 1 01-04-2005 06:30 PM
Pexpect getting a defuct process Baillargeon, Sonny Python 1 01-04-2005 05:06 PM



Advertisments