Hi,
I'm working on a script which has to copy multiple files from one server to another server. The list of files that are to be copied is present in a file say input.txt.
vi input.txt
abc.c
welcome.c
new.c
welcome1.c
for ftp'ing a single file say 'new.c' the following code works fine.
HOST="xxxxxx"
USER='xxxxxxx'
PASSWD='xxxxxx'
FILE="new.c"
ftp -inv $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd $trgtpath
lcd $curnt_dir
binary
prompt off
mget $FILE
bye
##quit
END_SCRIPT
##exit 0
Please help me with looping through input.txt file and copying the files.
Also pls share the info on what <<END_SCRIPT signifies.
Thanks,
Srini