David wrote:
Charlie Reddington wrote:
Thanks for all the replies, I'll definitely look into it all.
Charlie
Something else for your consideration;
http://commandline.org.uk/python/sftp-python-really-simple-ssh/
almost forgot pexpect
#!/usr/bin/python
import pexpect
child = pexpect.spawn ('ssh r...@localhost')
child.expect ('Password:')
child.sendline ('mypassword')
child.expect ('')
child.sendline ('ls -a')
print child.before
child.interact()
--
Powered by Gentoo GNU/Linux
http://linuxcrazy.com
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor