Hi I am new to linux and trying to get a program to work.
I followed the following instructions:
Edit your ~/.bashrc file to set up the environment for the caffe U-Net software:
export PATH=$PATH:/home/unetuser/u-net/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/unetuser/u-net/lib
Now the expected bahviour is that when i run caffe
I get the expected output, and indeed that works as expected.
However when i try:
ssh localhost caffe
bash: caffe: command not found
Why can i not use the caffe
command with ssh
?
according to this answer using ssh localhost <command>
loads the ~./bashrc profile which has the correct command path.
caffe
I get the expected output". Ignoringssh
for a moment, does this step work?ssh localhost 'getent passwd $USER' | awk -F: '{print $1,$7}'
(forlocalhost
as per your question). First field should be your expected username. Is the second field/bin/bash
- and if not, what is it?