Hi All,
I am trying to run a script to FTP files from one UNIX server to another UNIX server. Actually I can able to FTP file successfully by manually or paste whole script at prompt. But when I am trying to run script it is giving error.
Please let me know the cause.
#!/bin/sh
HOST=164.123.133.11
USER=abc
PASSWD=abc1
cd /app/data/backup
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
bin
cd /app/data
put abc.TXT
quit
END_SCRIPT
exit 0