A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-November/049732.html below:

[Python-Dev] Help Needed ..Urgent Plzz

[Python-Dev] Help Needed ..Urgent Plzz [Python-Dev] Help Needed ..Urgent PlzzSatyarth 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4