.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 |
Could 'ssh <compute node1> env APP_HOME=/path PATH=path:path <application>' work?
|
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. |