Re: Execute Remote Application using SSH - WeOnlyDo Discussion board

Re: Execute Remote Application using SSH (General questions)

by wodSupport, Thursday, August 18, 2005, 23:46 (7036 days ago) @ KG

KG,

Hello,
I would like to execute a remote application using SSH.NET, can some one let me know on how to achieve the same?

I think easiest way would be to set Command property. Once connected, wodSSH.NET will execute whatever you put in Command property. When your command ends, wodSSH will disconnect.

Is it possible to know if the application executed successfully or not on the remote server.

Currently you can call Receive method to see what response it receives. In few days we will add ExitStatus property so you will be able to receive that info, if provided by your command.

In the sample code there is mention of
Ssh1.ConnectedEvent += new WeOnlyDo.Client.SSH.ConnectedDelegate(Ssh1_Connected);
What is the Ssh1_Connected expecting as arugument any sample will be of great help.

There are few samples provided with wodSSH.NET, try them out. All of them have Connected event, so you can see how it is declared.

Regards.


Complete thread: