How to check if Pexpect child already exist?

Thomas Elsgaard thomas.elsgaard at
Wed Dec 5 08:41:23 CET 2012

Hi List

I am wondering, how can i check if child already exist before i spawn
? child.isalive() cannot be done on child before it has been spawned.

import pexpect

child=pexpect.spawn('ssh mysurface at')

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list