File Transfer
Moderators: chulett, rschirm, roy
File Transfer
We transfer various source files on the unix server and a generic trigger file. This trigger file is used as an indication to start the load. The problem is that once a file is transferred along with a trigger file the job is kicked off and starts processing all the files that are present on the server. The problem occurs if another source file also starts getting transferred,it is also be picked up even if the transfer is not complete. Is there a way to check whether the file is completely transferred or not ?
Perhaps you should rethink your idea of a generic trigger file.
There are various techniques. One it to check the incoming filesize at regular intervals and then process the file once it 'stops growing'. Not ideal, but I've seen it done. Another is to use a utility like fuser which purports to tell you if a file is 'in use' or not.
![Razz :P](./images/smilies/icon_razz.gif)
There are various techniques. One it to check the incoming filesize at regular intervals and then process the file once it 'stops growing'. Not ideal, but I've seen it done. Another is to use a utility like fuser which purports to tell you if a file is 'in use' or not.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers