title: use environment variables of remote server in ssh command
body: <p>I have two servers X(host) and Y(remote). A script abc.sh is saved on Y server. I am running abc.sh from server X using ssh command. </p>
  
  <p>Script is running successfully but the commands which contain the environment variables(kept in /.bash_profile) of server Y are giving blank output.</p>
  
  <p>When I am running abc.sh from server Y itself, all commands running successfully.</p>
  
  <p>My question is how to include the environment variables of remote server(Y) so that full script will execute successfully. </p>
  
  <p>NOTE : I don't have write access to etc directory so I can't change anything in it.</p>
  
  <p>Thanks in advance!</p>