[Python-Dev] Help Needed ..Urgent Plzz
Satyarth Negi
satyarth.negi at gmail.com
Tue Nov 2 10:13:12 CET 2004
Hello , I have a problem with a peice of code :
.........
self.child = pexpect.spawn('ssh -l ' + user +' ' + host)
self.child.setmaxread (1000)
self.child.expect('[pP]assword:', 30)
self.child.sendline(password)
........
When i run the script it gives me following error :
" Exception exceptions.OSError: (10, 'No child processes') in <bound
method spawn.__del__ of <pexpect.spawn instance at 0x403d938c>>
ignored"
Then I added , self.child.close(False) before 3rd line , but even that
is not working .
Please help , im totaly stuck .
Thanx in anticipation .
Regards
Satyarth Negi
India
More information about the Python-Dev
mailing list