scp command for multiple file transfer.

 
FILE_LIST="{a.txt,b.txt,cal*}"
scp -r $..$REMOTE_PATH$FILE_LIST $LOCAL_PATH
 

This script passes only when all the three files are transfere, wat if only two file are transfered, but still I was to make the return code as pass.
is it possible.

Does that work? What does $.. do?

I think I would do it something like this (untested):

SUCCESS=false
for f in a.txt b.txt cal*; do
    scp $REMOTE_PATH$f $LOCAL_PATH  &&  SUCCESS=true
done
$SUCCESS

You could also try copying with sftp -b batchfile , which will return error and quit when nearly any command in the batchfile fails. sftp uses the same protocol as scp but has an ftp-like interface.