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
Complete thread:
- Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 08:24
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 09:55
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 10:44
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 11:19
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 11:54
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 12:08
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 12:40
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-30, 07:50
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 12:40
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 12:08
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 11:54
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 11:19
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 10:44
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 09:55