Frequently Asked Questions

How to use the component in Python?

Please follow these instructions in order to use wodSSH in Python:

1. Install pywin32 module from http://sourceforge.net/projects/pywin32/ 
2. go to your "Lib\site-packages\win32com\client" of your python folder, usually "C:...\Python26\Lib\site-packages\win32com\client" and run "makepy.py". This will show you a window asking you to select the component you wish to use. Select "WeOnlyDo! COM Secure Shell Component (1.0)" and click OK. This will create a wrapper file for the component.

Once wrapper file is created, you can use the component in a .py script like this:

--------------------------------------------------------------------------------

import win32com.client
import pythoncom

ssh=win32com.client.Dispatch("WeOnlyDo.wodSSHCom.1")

print ssh.Version

ssh.Hostname="your_host"
ssh.Login="your_login"
ssh.Password="your_password"
ssh.Blocking=True
ssh.Connect()

print ssh.WaitFor("regex:[\$%#>] $")


 Last updated Thu, Nov 7 2013 11:00pm

Please Wait!

Please wait... it will take a second!