Mars Lenjoy wrote:
> i tried
> $ rsh 11.11.11.2 <http://11.11.11.2> -n tkill -N -v
> bash: line 1: tkill: command not found
>
> what's the meaning?
Your environment still is not set up properly.. see below.
> a file named tmpset in ~/
> in the tmpset file:
>
> export PATH=/u2/test/Lenjoy/LAMHOME/bin:and so on...
> export LD_LIBRARY_PATH=/u2/test/Lenjoy/LAMHOME/lib:and so on...
>
>
>
> what i did:
>
> */u2/test $ . tmpset*
This needs to happen in .bashrc and/or .bash_profile, not manually on
the command line. Otherwise, changes to your local environment do not
carry over when you rsh/ssh to a remote node.
Another option is the lamboot -prefix argument:
lamboot -prefix /u2/test/Lenjoy/LAMHOME -v hostfile
This will tell lamboot to set up PATH/LD_LIBRARY_PATH on remote nodes,
though I recommend just having this set up properly in
.bashrc/.bash_profile.
Andrew
|