In my VBScript I am able to connect to my RemoteServer(Unix) using Tectia-sshg3 command line as below. This VBScript is called in my batch file.
VB Code:Dim WshShell, oExec, oExec1 Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "%comspec% /c sshg3 myUserId@RemoteServer", 1, TRUE
Its then opening a new window for Remote login and then showing me "$" sign. I can then enter any unix command manually and it shows me the result. This works fine.
Now I want to automate entering of unix command by VBScript code. I used code as below, but it doesnt working.
VB Code:WshShell.SendKeys "ls -al"
Appreciate your time.