I have a wierd requirement where i need to check for a file transfered to my Server and once it is completed i need to start processing my jobs.
My server is AIX 6.0 and i want to know is there some way in unix i can keep on checking the file and once it is completed successfully i can trigger my ETL jobs.
Bottom line, it's the sending thing's job to tell you when it's done, because the receiver can't tell the difference between a finished upload, a stalled upload, or an aborted upload -- all three will have a file sitting there unchanged for long periods of time.
One of the best ways for the uploader to inform you of a completed upload is:
Upload the file to /path/to/temporary/file
In the same FTP session, rename /path/to/temporary/file /path/to/destination/file
As long as /path/to/temporary/ and /path/to/destination/ are on the same partition, this guarantees that files always appear in /path/to/destination/ whole, never partial files or in-progress uploads.