Re: Shelless SSH (General questions)
Hi. I may be wrong, but I don't think shell is what the problem is in your case, but terminal window that appears on the screen. Is that correct?
wodSSH by itself doesn't have terminal window, so you can do all the code under the hood. If you want to hide the window itself, you can do it just as any window.
You can specify a Command property to execute a command instad of the shell itself, perhaps this helps. You can also set AllocatePty = false to force hidden mode on the server, if it supports it.
But I'm curious - what are you trying to do? To forward data? Why not using wodSSHTunnel instead of PLINK.EXE?
Hope this helps!
Kreso
HI Kreso,
We are looking for a C# library that will convert the command below and do it all behind the scenes without a shell. If you have an example of a program we can play with to accomplish this we would happily buy your product.
Here is what we are doing in a nut shell
1) We have 9 Media Star encoder streams in house; each set to a predetermined channel streaming the video using a the RTSP protocol
2) We run a Device Manager job to install VLC and Jack Audio Debian packages on clients
3) When a user connects via RGS to a VM or blade workstation an event is recorded that retains the client IP address from where the connection was initiated from.
4) Each VM or Blade workstation using ThinTV has a WMI script running in memory that reads the Quattro GT7725 IP address and sets and environment variable to the clients IP address “ThinConnectedFrom=172.21.72.57â€.
5) We designed a .net application that uses two components “PLINK.EXE†and a .net application that uses SSH to connect to the thin client, it then runs a command string opening VLC on top of RGS initiating the RTSP protocol to the Media star stream that was selected via a click_event on the .net application.
6) RGS sounds and VLC sounds run on different audio channels
The issue is when getting rid of number 5 putting the command into a win32 appilcation that does not bring up a command shell…. Below is a copy of the command being put through the shell.
string stfamtv0001 = /C + ( PLINK.EXE + + appliance@ ThinConnectedFrom + + -pw appliance + + killall -q vlc; export DISPLAY=:0.0; vlc --volume 512 rtsp://stfamtv0001/streama );
here is the rest of the code….
private void data(string streamPath)
{
System.Diagnostics.Process ps;
ps = new System.Diagnostics.Process();
ps.EnableRaisingEvents = false;
System.Diagnostics.Process.Start( CMD.exe , streamPath);
ps.Close();
}
private void btnFOX_Click(object sender, EventArgs e)
{
data(stfamtv0001);
}
Best regards,
Peter
Complete thread:
- Shelless SSH - schenkp, 2009-07-06, 21:06
- Re: Shelless SSH - wodSupport, 2009-07-06, 21:10
- Re: Shelless SSH - schenkp, 2009-07-06, 21:25
- Re: Shelless SSH - wodDamir, 2009-07-06, 21:41
- Re: Shelless SSH - schenkp, 2009-07-06, 21:44
- Re: Shelless SSH - wodDamir, 2009-07-06, 21:50
- Re: Shelless SSH - schenkp, 2009-07-06, 21:55
- Re: Shelless SSH - wodDamir, 2009-07-06, 22:32
- Re: Shelless SSH - schenkp, 2009-07-07, 16:15
- Re: Shelless SSH - woddrazen, 2009-07-07, 16:31
- Re: Shelless SSH - schenkp, 2009-07-07, 17:00
- Re: Shelless SSH - woddrazen, 2009-07-07, 17:14
- Re: Shelless SSH - schenkp, 2009-07-07, 18:23
- Re: Shelless SSH - woddrazen, 2009-07-07, 18:27
- Re: Shelless SSH - schenkp, 2009-07-07, 19:38
- Re: Shelless SSH - woddrazen, 2009-07-07, 19:58
- Re: Shelless SSH - schenkp, 2009-07-07, 20:15
- Re: Shelless SSH - woddrazen, 2009-07-07, 20:29
- Re: Shelless SSH - schenkp, 2009-07-07, 20:46
- Re: Shelless SSH - woddrazen, 2009-07-07, 21:20
- Re: Shelless SSH - schenkp, 2009-07-08, 13:33
- Re: Shelless SSH - wodDamir, 2009-07-08, 13:37
- Re: Shelless SSH - schenkp, 2009-07-08, 13:57
- Re: Shelless SSH - wodDamir, 2009-07-08, 14:03
- Re: Shelless SSH - schenkp, 2009-07-08, 14:43
- Re: Shelless SSH - wodDamir, 2009-07-08, 14:57
- Re: Shelless SSH - schenkp, 2009-07-08, 15:15
- Re: Shelless SSH - wodDamir, 2009-07-08, 14:57
- Re: Shelless SSH - schenkp, 2009-07-08, 14:43
- Re: Shelless SSH - wodDamir, 2009-07-08, 14:03
- Re: Shelless SSH - schenkp, 2009-07-08, 13:57
- Re: Shelless SSH - wodDamir, 2009-07-08, 13:37
- Re: Shelless SSH - schenkp, 2009-07-08, 13:33
- Re: Shelless SSH - woddrazen, 2009-07-07, 21:20
- Re: Shelless SSH - schenkp, 2009-07-07, 20:46
- Re: Shelless SSH - woddrazen, 2009-07-07, 20:29
- Re: Shelless SSH - schenkp, 2009-07-07, 20:15
- Re: Shelless SSH - woddrazen, 2009-07-07, 19:58
- Re: Shelless SSH - schenkp, 2009-07-07, 19:38
- Re: Shelless SSH - woddrazen, 2009-07-07, 18:27
- Re: Shelless SSH - schenkp, 2009-07-07, 18:23
- Re: Shelless SSH - woddrazen, 2009-07-07, 17:14
- Re: Shelless SSH - schenkp, 2009-07-07, 17:00
- Re: Shelless SSH - woddrazen, 2009-07-07, 16:31
- Re: Shelless SSH - schenkp, 2009-07-07, 16:15
- Re: Shelless SSH - wodDamir, 2009-07-06, 22:32
- Re: Shelless SSH - schenkp, 2009-07-06, 21:55
- Re: Shelless SSH - wodDamir, 2009-07-06, 21:50
- Re: Shelless SSH - schenkp, 2009-07-06, 21:44
- Re: Shelless SSH - wodDamir, 2009-07-06, 21:41
- Re: Shelless SSH - schenkp, 2009-07-06, 21:25
- Re: Shelless SSH - wodSupport, 2009-07-06, 21:10