Originally posted by: Kosala
Looking at the error, I think one possible problem would be your control connection timed out either by the OS or one of the network devices (during the transfer the the control connection is idling).
One thing I can suggest is to switch to passive mode. Your new script should look like:
cd $SOURCECP
echo "ftp Lejer LCP E Files"
ftp -n << EOF
open winftpserver
user administrator password
passive
cd $TARGETCP
lcd $TARGETCP
binary
mput *.gpg
bye
EOF
BUT... I would really like you to give a try to .netrc feature for FTP and telnet (man ftp will tell you more). The approach will be much neater. I hate to suggest things for windows, but you might want to look at CIFS capabilities of AIX (5.3 onwards I guess), so you can copy to a windows share directly.
HTH,
Kosala
#AIX-Forum