sshpass: command not found error
<p>I am trying to automate the file transfer or FTP from one server to the other.</p>

<pre><code>#!/bin/bash
### In this model, the same filename is processed on each run.
### A timestamp is added to the result file and data file is copied to the archive or error folder with a timestamp after processing.

# Set current directory
cd `dirname "$0"`

# Set the environment variables
. ./Environment.sh $0

#######################################################################################################
# 
#######################################################################################################


FILE=/hcm/Inbound/file.csv

sshpass -p 'xyz' sftp -oBatchMode=no -b - -oStrictHostKeyChecking=no zys@192.abc.taleo.net &lt;&lt;_EOF_

cd /upload/

put $FILE

_EOF_

# Exit
exit $?
</code></pre>

<p>When I am executing this shell script I am getting the following error in putty :</p>

<pre><code> -bash: sshpass: command not found
</code></pre>

<p>I tried using the ssh passwordless method by  <code>ssh-keygen -t dsa</code> and other steps but I cannot access putty of the second server due to which I am not being able to execute the next steps.</p>

<p>Kindly help</p>