Hello I am conneted to an Unix server by sharpssh with :
Imports Tamir.SharpSsh
Imports Tamir.Streams
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim ssh As SshExec
ssh = New SshExec("********", "******", "*****")
ssh.Connect()
ssh.RunCommand("amos RNC111")
ssh.RunCommand("lt all")
ssh.RunCommand("bye")
ssh.Close()
End Sub
End Class
The issue is after ssh.Connect()
I have to connect to a RNC(Radio network controller) and wait until it is connected. I dont know how to handle it, I check to do it with redirecction the stdin but I found to create a new process with :
myProcess.StartInfo.FileName = "pepe.exe"
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardInput = True
myProcess.Start()
Dim ssh As SshExec
ssh = New SshExec("********", "******", "*****")
ssh.Connect()
ssh.RunCommand("amos RNC111")
MsgBox(myProcess.StandardInput)
ssh.Close()
But I is not working.