Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Load different lib paths for different machines during ssh.

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-09-2013
admax's Unix or Linux Image
admax admax is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 23 April 2015, 1:41 AM EDT
Location: Bangalore / India
Posts: 21
Thanks: 6
Thanked 0 Times in 0 Posts
Load different lib paths for different machines during ssh.

Greetings to every one,
I have to access different clusters for computing.
But the problem is their lib paths are different. Linux
How can i export some particular library paths for a particular machine ?
For example

Like cluster_1 (ip : 10.169.85.47)

Code:
export LD_libPATH="/opt/CUDA"

Like cluster_2 (ip : 10.115.63.13)

Code:
export LD_libPATH="/usr/lib/NVIDIA"

Like cluster_3 (ip : 10.174.66.42)

Code:
export LD_libPATH="/usr/lib/CUDA"

Like this i have around 5 different clusters to access by ssh.
Any suggestions Linux

Last edited by admax; 02-09-2013 at 08:08 AM.. Reason: code tags
Sponsored Links
    #2  
Old Unix and Linux 02-10-2013
Chubler_XL's Unix or Linux Image
Chubler_XL Chubler_XL is online now Forum Staff  
Moderator
 
Join Date: Oct 2010
Last Activity: 28 May 2015, 6:00 PM EDT
Posts: 3,172
Thanks: 121
Thanked 1,051 Times in 984 Posts
Wouldn't you be better off setting the LD_LibPATH environment variable in the ~/.profile or ~/.bashrc on each machine?

If you can't use login profile, for whatever reason, you may be able to use SendEnv in the .ssh/config or -o command line arg. Note this requires protocol 2 and AcceptEnv LD_LibPATH configured for the remote sshd_config.
The Following User Says Thank You to Chubler_XL For This Useful Post:
admax (02-11-2013)
Sponsored Links
    #3  
Old Unix and Linux 02-11-2013
admax's Unix or Linux Image
admax admax is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 23 April 2015, 1:41 AM EDT
Location: Bangalore / India
Posts: 21
Thanks: 6
Thanked 0 Times in 0 Posts
Thanks...
i got it.. Linux
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
run script accross machines using ssh amr elhosiny UNIX for Dummies Questions & Answers 3 05-01-2011 03:35 PM
SSH connectivity between two machines with private key madankumar UNIX for Advanced & Expert Users 1 04-19-2011 09:03 AM
Synchronize DataBase Table Between Machines Via SSH? kettlewell UNIX for Advanced & Expert Users 3 08-12-2010 08:51 PM
stagger ssh command to multiple machines msullivan UNIX for Advanced & Expert Users 3 02-24-2009 09:09 AM
HOw to load dynamic lib from a statically linked program ? disclaimer Programming 1 03-21-2005 05:44 PM



All times are GMT -4. The time now is 06:10 PM.