Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Load different lib paths for different machines during ssh.

Shell Programming and Scripting


Closed    
 
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: 29 July 2015, 12:01 PM 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 09: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 offline Forum Staff  
Moderator
 
Join Date: Oct 2010
Last Activity: 29 November 2016, 5:58 PM EST
Posts: 3,313
Thanks: 132
Thanked 1,122 Times in 1,045 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: 29 July 2015, 12:01 PM EDT
Location: Bangalore / India
Posts: 21
Thanks: 6
Thanked 0 Times in 0 Posts
Thanks...
i got it.. Linux
Sponsored Links
Closed

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 04:35 PM
SSH connectivity between two machines with private key madankumar UNIX for Advanced & Expert Users 1 04-19-2011 10:03 AM
Synchronize DataBase Table Between Machines Via SSH? kettlewell UNIX for Advanced & Expert Users 3 08-12-2010 09:51 PM
stagger ssh command to multiple machines msullivan UNIX for Advanced & Expert Users 3 02-24-2009 10:09 AM
HOw to load dynamic lib from a statically linked program ? disclaimer Programming 1 03-21-2005 06:44 PM



All times are GMT -4. The time now is 01:54 PM.