2 Nov
2004
2 Nov
'04
1:13 a.m.
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
7311
Age (days ago)
7311
Last active (days ago)
0 comments
1 participants
participants (1)
-
Satyarth Negi