LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Remote execution over SSH - incomplete environment (http://www.linuxquestions.org/questions/linux-server-73/remote-execution-over-ssh-incomplete-environment-760020/)

echa 10-06-2009 05: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)

vs.

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 07:18 AM

Hi,

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

HTH

kbp

echa 10-06-2009 07: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 08:19 AM

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

echa 10-06-2009 08: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 10:14 AM

These guys had the same problem with PuTTY:

http://fixunix.com/ssh/323069-differ...teractive.html


All times are GMT -5. The time now is 01:08 AM.