Re: Shelless SSH - WeOnlyDo Discussion board

Re: Shelless SSH (General questions)

by schenkp, Tuesday, July 07, 2009, 16:15 (5617 days ago) @ wodDamir

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

Damba,
Is there a way to have ssh1.Hostname = your_hostname ; read an envirnment variable like ThinConnectedFrom=172.21.72.57 and use the IP address as the hostname?


Complete thread: