LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .profile/.bashrc not being read (https://www.linuxquestions.org/questions/linux-newbie-8/profile-bashrc-not-being-read-800181/)

ema_ema 04-05-2010 02:45 PM

.profile/.bashrc not being read
 
All,
A cluster with a head node and compute nodes. An application with a couple of env variables (App_HOME, PATH) set in .profile (default shell sh). If I login to the head node/compute nodes on a terminal everything works fine. The correct env variables are set and the application works.
However, when my application tries to do it, say
ssh <compute node1> <application>,
it appears the environment variables are not available. It only looks in the minimal /bin, /usr/bin type PATH. This tells that the .profile is not being read.

Any hints/help would be greatly appreciated. Dont know if i gave all the necessary information. Would be glad to provide any additional info.

Thanks,
PR

unSpawn 04-05-2010 07:46 PM

Could 'ssh <compute node1> env APP_HOME=/path PATH=path:path <application>' work?

grail 04-05-2010 09:57 PM

Have you tried setting the variable in /etc/profile?
All I can think is that it needs to be more global than your HOME profile as using an application
and not a terminal.


All times are GMT -5. The time now is 05:42 PM.