scp files from other server with check

Hi all,
I am new to this forum,and it has been really a great pleasure to be a part of this forum:)
well,i m trying to write a shell script where i m transfering a set of files from other server to my own server.
for this i m using scp command,but in that file there is no footer, so that i can check that the file is successfully transfered.:confused:
so can it be possible using some other way..??

Look into the rsync command it can be set to validate copies. It is also is a great way to keep directories on separate servers the same as an original directory.