title: moving from one to another server in shell script
body: <p>Here is the scenario,</p>
  
  <pre><code>$hostname
  server1
  </code></pre>
  
  <p>I have the below script in server1,</p>
  
  <pre><code>#!/bin/ksh
  echo "Enter server name:"
  read server
  
  rsh -n ${server} -l mquser "/opt/hd/ca/scripts/envscripts.ksh"
  qdisplay
   # script ends.
  </code></pre>
  
  <p>In above script I am logging into another server say server2 and executing the script "envscripts.ksh" which sets few alias(Alias "qdisplay") defined in it.</p>
  
  <p>I can able to successfully login to server1 but unable to use the alias set by script "envscripts.ksh".</p>
  
  <p>Geting below error,</p>
  
  <pre><code>-bash: qdisplay: command not found
  </code></pre>
  
  <p>can some please point out what needs to be corrected here.</p>
  
  <p>Thanks,
  Vignesh</p>