.profile/.bashrc not being read
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.