Using FTP to check whether file is completely FTP... plz find the description below

Hi,

We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.

My question Is there any FTP command/script to check from my local shell program whether client succesfully ftp/scp file completely before retrieving the file from remote server?

currently it is Local server retrieving the files when it is been FTP ing to remote server....

I greatly appreciate the help....

Thanks

Not that I know of - when we did ftp jobs, we transmitted an ok-flag file, a simple empty file sent after the data file itself to at least signal the datafile was transmitted.

Or have the -v for your ftp and check/parse the 3 digit ftp codes in front of the operations like for example:

331 Password required for root.
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
200 PORT command successful
150 Opening ASCII mode data connection for file list