LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-06-2009, 06:56 AM   #1
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
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)?
 
Old 10-06-2009, 08:18 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Hi,

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

HTH

kbp
 
Old 10-06-2009, 08:23 AM   #3
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 10-06-2009, 09:19 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
How about using NX and just launching the app instead of a full window manager ? ...
 
Old 10-06-2009, 09:54 AM   #5
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 10-06-2009, 11:14 AM   #6
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
These guys had the same problem with PuTTY:

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


Reply

Tags
remote, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
incomplete remote address with netstat TottiGol Linux - Networking 3 12-11-2007 11:15 AM
LXer: Vixta: Nice concept, incomplete execution LXer Syndicated Linux News 4 10-27-2007 06:44 AM
Automated execution of a command on a remote system via SSH GUIPenguin Linux - General 1 03-01-2006 12:23 AM
ssh : remote command execution doesn't work for modifying env variables pypieuvre Programming 10 02-24-2006 10:50 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration