1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with ssh commands in bash

Discussion in 'Shell Script' started by bgk111, Aug 28, 2010.

  1. bgk111

    bgk111 New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    Hey all, Ill try to keep this short. I am trying to issue a command to another computer using ssh (ex ssh user@host 'csh /home/usr/SCRIPTS/tp.csh) and am getting some annoying error messages. when I run the tp.csh program on the host machine, it runs fine, when I issue the above command from a remote computer, I get 2 different errors:

    TERM environment variable not set


    error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory

    I cant really go much in to the what of the code as I cant show it. I DO know that I can re-create the first error using the following command:

    ssh user@host 'top -u user'

    I have heard that the top problem can be fixed by running in batch mode, but need to find a way to get the functions working without that. Is there a flag in ssh im missing? I feel like if I can fix the TERM big (both computers display xterm when I issue the command echo $TERM), then I can fix the other library problem using the same method. Any ideas? Thanks for your time!

Share This Page