Shell script to call FTP [off-topic]

  • From: Alex List <alex@xxxxxxxxxxxxxx>
  • To: Oracle I List <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 5 Apr 2011 14:40:36 -0300

Hi,

Sorry for posting an off-topic email, but I guess that my simple doubt is
really simple to you guys.

In my shell script to transfer files, I am having difficult to do the way I
need.
Basically when I invoke the shell, it supposed to log in on FTP server with
password authenticated and so execute the ftp commands.

############
ftp ftp://backup:bkp123@xxxxxxxxx << _EOF_ >>/dev/null 2>&1
 bin
 prompt
 cd /srv43
 lcd /db/bugtracker/
 mput *.gz
 quit
_EOF_
############

However, when I try to execute I get error like: unknown host

Do you have a suggestion what I am doing wrong??
This same script needs to run on Linux64/bash and AIX.

Thank you in advance for any clue.
Alex

Other related posts: