Hi,
I have a problem with the current FTP script that I am using:
Here it is:
!/usr/bin/ksh
{
cat <<END
ftp -n -v << EOF
open "host"
user "user" "password" "account"
lcd local/directory
END
sed -e 's/.*/get &/' filelist
cat <<END
quit
EOF
END
What this script is supposed to do is to continuously "get file#.tar.Z."Quote:}|ksh
from the "filelist" in one FTP command. There are over 100 FILES
to get and this entire process consumes around 30 minutes.
The MAJOR PROBLEM with this script is when I added the "-v" (verbose)
command in the initial FTP command. The reason I added the "-v" command
was to get some FEEDBACK from the remote FTP server. I'd say about
90 percent of the time I get this ERROR displayed on my screen:
-----------------------------------------------------------------
ftp: accept: Protocol error
426 Data connection: Broken pipe.
421 Service not available, remote server has closed connection
Not connected.
Not connected.
Not connected.
Not connected.
-----------------------------------------------------------------
After this message, I was KICKED OUT of my FTP site and only about
25 percent of the files are TRANSFERRED OVER.
The FUNNY THING is that when I GET RID OF the "-v" command in the
initial FTP script, EVERYTHING works fine (the script works 100
percent of the time). All my files are safely
transferred over BUT I want some sort of INDICATION from the remote
server on what files are being transferred DISPLAYED on my screen.
Any Suggestions ???
Thanks,
Ming.
--
Ming Fung