Home » Infrastructure » Unix » Asking password when running the shell script to ftp the files
Asking password when running the shell script to ftp the files [message #358521] Tue, 11 November 2008 14:39 Go to next message
shrinika
Messages: 306
Registered: April 2008
Senior Member
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

Re: Asking password when running the shell script to ftp the files [message #358614 is a reply to message #358521] Tue, 11 November 2008 23:35 Go to previous message
Michel Cadot
Messages: 68624
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no connection with Oracle.
Please find a more appropriate forum.
The topic is locked.

Regards
Michel
Previous Topic: Help needed on substitution in Unix (sed)
Next Topic: Installation/Encryption/Decryption help required
Goto Forum:
  


Current Time: Thu Mar 28 02:55:09 CDT 2024