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

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 10-06-2009, 06:56 AM   #1
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4
Thanked: 0
Remote execution over SSH - incomplete environment


[Log in to get rid of this advertisement]
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)?
linuxdebian echa is offline  
Tag This Post , , ,
Reply With Quote
Old 10-06-2009, 08:18 AM   #2
kbp
Member
 
Registered: Aug 2009
Posts: 478
Thanked: 43
Hi,

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

HTH

kbp
linuxfedora kbp is offline     Reply With Quote
Old 10-06-2009, 08:23 AM   #3
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4
Thanked: 0

Original Poster
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.
linuxdebian echa is offline     Reply With Quote
Old 10-06-2009, 09:19 AM   #4
kbp
Member
 
Registered: Aug 2009
Posts: 478
Thanked: 43
How about using NX and just launching the app instead of a full window manager ? ...
linuxfedora kbp is offline     Reply With Quote
Old 10-06-2009, 09:54 AM   #5
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4
Thanked: 0

Original Poster
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.
linuxdebian echa is offline     Reply With Quote
Old 10-06-2009, 11:14 AM   #6
echa
LQ Newbie
 
Registered: Oct 2009
Posts: 4
Thanked: 0

Original Poster
These guys had the same problem with PuTTY:

http://fixunix.com/ssh/323069-differ...teractive.html
linuxdebian echa is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 01:03 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration