title: "sftp: command not found" running sftp from Unix Shell Script
body: <p>I can transfer a file from one server to another using <code>sftp</code> in the prompt.</p>
  
  <p>I try using <code>sftp</code> in a shell script and I get the following error:</p>
  
  <pre><code>"sftp: command not found" 
  </code></pre>
  
  <p>I tried the below code from a script:</p>
  
  <pre><code>sftp ${USER}@${HOST} &lt;&lt;EOF
  quote pass ${PASSWD}
  cd  ${PATH}
  mput *.csv
  EOF
  </code></pre>
  
  <p>Can anyone help me with this?</p>