Load different lib paths for different machines during ssh. | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Load different lib paths for different machines during ssh.

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-09-2013
admax's Avatar
admax admax is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 February 2013, 12:15 AM EST
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.
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

Last edited by admax; 02-09-2013 at 08:08 AM.. Reason: code tags
Sponsored Links
    #2  
Old 02-10-2013
Chubler_XL's Avatar
Chubler_XL Chubler_XL is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 22 April 2014, 11:13 AM EDT
Posts: 2,603
Thanks: 94
Thanked 804 Times in 757 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 02-11-2013
admax's Avatar
admax admax is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 February 2013, 12:15 AM EST
Location: Bangalore / India
Posts: 21
Thanks: 6
Thanked 0 Times in 0 Posts
Thanks...
i got it..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:29 PM.