| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| Maximus14221 |
Posted: Jul 7 2004, 08:50 PM
|
|
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 |
| Perderabo |
Posted: Jul 8 2004, 12:07 PM
|
|
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.
|
| TokesterBBC |
Posted: Jul 14 2004, 01:26 PM
|
||
|
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.
Toke :wacko: |
||
![]() |
![]() ![]() ![]() |