-   Linux - Server (
-   -   Remote execution over SSH - incomplete environment (

echa 10-06-2009 06:56 AM

Remote execution over SSH - incomplete environment
A certain remote application, when launched using an SSH one-liner does not function correctly, I believe this is because the environment is incomplete when using SSH non-interactively.

The specific malfunction is that in this application (Telelogic Synergy GUI) it is not possible to open a new window by double-clicking an entity.

local:~$ ssh -YC user@remotehost 'command'
(application malfunction)


local:~$ ssh -YC user@remotehost
remotehost:~$ command
(works fine)

I have tried echo command | ssh -YC user@remotehost and this does not appear to help.

Is there a way to get SSH to execute the user profiles properly so I get a complete environment, in a non-interactive one-liner (goal is to execute via a Linux desktop launcher)?

kbp 10-06-2009 08:18 AM


What if you create a script that sources all the standard login files then launches your app?



echa 10-06-2009 08:23 AM

Firstly, I don't know which user will be executing it, and each may have a different environment.

Also, that's not a clean or portable (i.e. between different systems) solution as it requires work on the backend, which we would need to remember to reproduce for any new server that is commissioned.

kbp 10-06-2009 09:19 AM

How about using NX and just launching the app instead of a full window manager ? ...

echa 10-06-2009 09:54 AM

I am just launching just the app not the whole WM. This is how remote execution using SSH with X extensions works.

NX I have read is a lighter and faster X compression mechanism but it requires local and remote connection proxies and I cannot install any software on the backend.

This should be possible with no changes to the backend (installing software, scripting etc)... but currently I just can't see how.

echa 10-06-2009 11:14 AM

These guys had the same problem with PuTTY:

All times are GMT -5. The time now is 11:09 PM.