How can I issue a command to a linux system via c#?
Using C#, I need to send a date
command to set the time on a linux system.
How can I connect to this system and send this command in code?
What library can I use to do this?
Update: I'm really looking for a fre开发者_如何学JAVAe solution, thank you...
I suggest using the SharpSSH library: http://sourceforge.net/projects/sharpssh/
You could use ChilkatDotNet components to ssh/telnet to your linux box, and run the command - otherwise you would need a client app to sit and listen.
http://www.chilkatsoft.com/downloads_DotNet.asp
You need some SSH component for .NET to access the remote system. There are plenty on the market, from free (and outdated) SharpSSH to our SSHBlackbox.
Try to use Mono(http://mono-project.com/Writing_a_WebService). You can simply implement web service same way on Windows.
精彩评论