By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,627 Members | 1,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,627 IT Pros & Developers. It's quick & easy.

Pexpect getting a defuct process

P: n/a
I am trying to use a pexpect script using python v2.3.4 with pexpect
module .999 on Solaris 8.

I try to execute this script.

#!/usr/bin/env python
'''This runs "ls -l" on a remote host using SSH.
At the prompts enter hostname, user, and password.
import pexpect

logfile = open('sshls.log', 'w')

child = pexpect.spawn('ssh user@server ls -la')
child.expect(pexpect.EOF, timeout=180)
print child.before

This used to work before but now I get a defunct process after it runs.
Any ideas?

<FONT SIZE = 1>************************************************ ****************************
This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Anydissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. Unless otherwise stated, opinions expressed in this e-mail are those of the author and are not endorsed by the author's employer.</FONT>

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Baillargeon, Sonny, Terça 04 Janeiro 2005 14:42, wrote:
This used to work before but now I get a defunct process after it runs.
Any ideas?

"before" what? What has changed in your environment to make it stop

Godoy. <go***>

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.