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