Need help in not fetching a file while file writing operation is not completed

Hi All,

We have a Unix program in oracle when we run the program this connects to specified ftp and will get the file into local server.

We are facing a problem like when file writing operations is not completed, this program is getting the incomplete file.

Could anyone please help me how to control this.

Thanks in advance.

one way could be to connect to ftp server and get the size of files only, and reconnect after a min to get the size of files again. Compare the size of files, if they are same you can copy files else try after some time.

Thanks for your help.

Could you please provide the script if you have it.

Thanks