pexpect question....

Ganesan Rajagopal rganesan at myrealbox.com
Sat Jul 2 03:45:21 EDT 2005


>>>>> "draghuram at gmail" == draghuram at gmail com <draghuram at gmail.com> writes:

> Hi,
> I am using pexpect to spawn an interactive program and wait for
> particular string in its output. It works fine but once I get this
> required information, I really don't care about the child process
> anymore. I would effectively want to "detach" from it. 

How about just calling close(), i.e. without wait=1? No need to spawn a new
thread. 

Ganesan

-- 
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan        | http://rganesan.blogspot.com




More information about the Python-list mailing list