Re: Start complex UNIX-Script with wodSSH (General questions)
Hi,
I have one question, did you mean to run Script Command in UNIX Server?
Here is how I did it in VB6:
----------------------------
Dim WithEvents ssh1 As wodSSHCom
Set ssh1 = New wodSSHCom
ssh1.HostName = Hostname
ssh1.Blocking = True
ssh1.StripANSI = True
ssh1.Login = login
ssh1.Password = password
ssh1.Protocol = SSHAuto
ssh1.Connect
ssh1.WaitFor ( regex:[$ #>] $ )
If ssh1.DataReady > 0 Then ssh1.Receive
Debug.Print ssh1.Execute( script & vbLf, regex:[$ #>] $ )
ssh1.Disconnect
--------------------------------
And here is what I received from my server:
--------------------------------------
script
Script started, file is typescript
kreso1@knjiga:~
---------------------------------------
If this is what you what to do, can we connect to your server and try to duplicate your problem?
Or you have problem with something other then this?
Regards,
Drazen