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 free solution, thank you...
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 free solution, thank you...
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.
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.