Frequently Asked Questions
How to connect to server and send command in Visual FoxPro 6?
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))
Last updated Fri, Nov 8 2013 12:00am