Re: Would like to have some example code please fo (General questions)
Greg,
I will need your help with this. Basically, you need to initialize wodSSH and then do something like:
ssh.blocking = 1
ssh.hostname = something
ssh.login = something
ssh.password = something
ssh.connect
' at this point try to read all you can
' we are expecting command prompt
' try something like this
while ssh.dataready> 0
ssh.receive
end while
what could be causing trouble for you is that you don't read data that is initially sent by the server - so when you blindly send you need to receive initial data + your command response.
You could try also using Command property for your purpose. I don't know exactly what you need to do, but if you give me few hints I can try to make working VBS code for you.
Regards,
Kreso
Complete thread:
- Would like to have some example code please for VB - Greg Maples, 2004-08-20, 03:38
- Re: Would like to have some example code please fo - wodSupport, 2004-08-20, 11:17