title: Executing a Shell Script on Remote Server :: Gives sqlplus: command not found
body: <p>I have two servers <strong>Server A</strong> which has a shell script - 'Process_Backup.sh'. </p>
  
  <p>I executed this script on server A - './Process_Backup.sh' and it executed fine. Basically this script connects to my oracle database on Server A and executes a procedure.</p>
  
  <p>What I need to do is execute the script 'Process_Backup.sh' on server A from a different <strong>Server B</strong>.</p>
  
  <p>I tried following command from <strong>Server B</strong></p>
  
  <pre><code>ssh test@server1.xxx.com "cd Scripts/Shell; ./Process_Backup.sh"
  </code></pre>
  
  <p>But I am getting following error-</p>
  
  <pre><code>line 49: sqlplus: command not found
  </code></pre>
  
  <p>I have all the software installed on server A so not sure why am I getting this error. I am new to linux environment. I have gone through most of the question posted here but mine seems to be a different case.</p>
  
  <p>Any help is appreciated </p>