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...
我建议使用SharpSSH库: 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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.