ssh remote command not sourcing bashrc

Hi,
WHen I login to the host using ssh, it sources bash_profile then bashrc file, and reads in my path and other variables.

But when I want to execute a command remotely, it is not sourcing my bash_profile or bashrc files and I dont get the env I want. THis is causing a lot of problems.

HOw do I fix this?

thanks,

Samit

Hi
Probably it is a matter of paths.
Try to set the full path of bash_profile and bashrc files.

Cheers