Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> rsh trouble, rsh not accessing environment variables
Maximus14221
Posted: Jul 7 2004, 08:50 PM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 368
Joined: 7-July 04




Hello,

I have a question regarding rsh. I am using dynamic executatbles on a Linux cluster and have mounted all the necessary libraries on nodes and set LD_LIBRARY_PATH accordingly on all nodes. When I perform the following command:

rsh computenode01 'cd /tmp; ./executable'

I get error message that "cannot find shared objects". I believe the problem is that the above command does not find the LD_LIBRARY_PATH variable. To verify, I used command

rsh computenode01 'echo $LD_LIBRARY_PATH'

It displays an empty line - not set. But when I actually rsh computenode01 (I am now in computenode01), and then do echo $LD_LIBRARY_PATH, the correct path is displayed.

This is very perplexing to me. Is there someway to configure rsh so that the issue is resolved? I need the command rsh computenode01 'cd /tmp; ./executable' to work for a research project.

The executable files I am running are compiled from Matlab codes using mcc. I need to get
rsh computenode01 '/run/executable' working for a research project.

Thank you very much for your help. Any help would be greatly appreciated.


Regards,
Shuowen Hu
PMEmail Poster
Top
Perderabo
Posted: Jul 8 2004, 12:07 PM
Quote Post


User Level: 4
****

Group: Members
Posts: 76
Member No.: 349
Joined: 28-June 04



I would write a shell wrapper that sets LD_LIBRARY_PATH, exports it, then runs the program. Then just invoke the wrapper instead of the executable.
PMEmail Poster
Top
TokesterBBC
Posted: Jul 14 2004, 01:26 PM
Quote Post


User Level: 4
****

Group: Members
Posts: 54
Member No.: 319
Joined: 4-June 04



Just a thought, I've not used rsh before as most of my servers I administer are via socks proxy but once you connect can you not firstly try and reload your initialisation file in the same shell then change to your dir and run your other commands
i.e.
CODE
rsh computenode01 '. ./.profile;cd /tmp; ./executable'



Toke :wacko:
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | SSH/Telnet/RLogin/RSH | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0957 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: Electronic Circuit Design :: Brico Piston Rings
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum