Re: Shelless SSH - WeOnlyDo Discussion board

Re: Shelless SSH (General questions)

by wodDamir, Monday, July 06, 2009, 22:32 (5621 days ago) @ schenkp

Peter,

I think I misunderstood you previously. You simply need to execute killall -q vlc command on server side?

If so, then I would suggest wodSSH.Net or wodSSH ActiveX. If so, then all the code to accomplish that would be this (using wodSSH.Net):

[code] WeOnlyDo.Client.SSH ssh1 = new WeOnlyDo.Client.SSH();

ssh1.Hostname = your_hostname ;
ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto;
ssh1.Login = your_login ;
ssh1.Password = your_password ;
ssh1.Blocking = true;
ssh1.Command = killall -q vlc\r\n ;
ssh1.Connect();[/code]

wodSSH.Net is available for download from here: http://www.weonlydo.com/Samples/wodSSH.NET.msi

This is native .Net component.

Regards,
Damba


Complete thread: