WeOnlyDo Support

Frequently Asked Question

How to connect to server and send command in Visual FoxPro 6?
Last Updated 12 years ago

Here is example how to connect to server and execute ls -al command using wodSSH ActiveX component:
ssh1=CREATEOBJECT('WeOnlyDo.wodSSH.1') 

ssh1.HostName='your_hostname'
ssh1.Login='your_login'
ssh1.Password='your_password'
ssh1.Blocking=.t.
ssh1.Connect()

ssh1.WaitFor ('regex:[\$%#>] $')
MessageBox (ssh1.Execute('ls -al' + CHR(10), 'regex:[\$%#>] $', 20))

Please Wait!

Please wait... it will take a second!