Hello,
I am ftping the file from one unix box to another box. This script works fine.
Only problem here is, it is asking the password when ftp the file. How can i stop that.
I am providing the password inside the shell script. But it is not accepting this.
I need to put this script in crontab. So i am providing the password through shell script file.. But is not accepting..
Any help is greatly appreciated...
export ORACLE_HOME=/usr/app/oracle/product/9.2.0
export WORKING_DIR=/home/odsapp/apps/CTSI
export FTP_TO=${WORKING_DIR}/CTSI_FILES
export FTP_FROM=xx.xx.com
export FTP_USER=xxx
export FTP_USER_PASSWD=yyy
cd ${FTP_TO}
ftp -dni << EOT
open $FTP_FROM
user $FTP_USER $FTP_USER_PASSW
cd /home/ftp/download
binary
get test.zip
bye
EOT
[Updated on: Tue, 11 November 2008 14:40]
Report message to a moderator