Problem with ssh commands in bash

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

  1. bgk111

    bgk111 New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

    and

    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice