Home | History | Annotate | Download | only in examples

Lines Matching refs:child

21     child = pexpect.spawn('ssh -l %s %s %s'%(user, host, command))
22 i = child.expect([pexpect.TIMEOUT, ssh_newkey, 'password: '])
26 print child.before, child.after
29 child.sendline ('yes')
30 child.expect ('password: ')
31 i = child.expect([pexpect.TIMEOUT, 'password: '])
35 print child.before, child.after
37 child.sendline(password)
38 return child
45 child = ssh_command (user, host, password, '/bin/ls -l')
46 child.expect(pexpect.EOF)
47 print child.before