Script for file move after FTP
I would consider myself a mid-linux user. I am an Oracle DBA and have done a few installs of Oracle on linux so I am familiar with some scripting. I need a script that will move files from a directory to another directory. The catch is the first directory is a directory that many users will FTP files to, after they FTP the file, a CRON job will process the files. Some of these files will be large and may take some time to transport. I have to process the files within 2 min after the file transfer completes. I have scripts that can move files based on date or even time. My issue is if I use “ls” to find out if there are any files in the directory it will show me files that have not yet completed the file transport. Basically, I need a script that will look at a folder and determine which files have completed the file transport and not the ones that are in the middle of transport.
Any help would be appreciated,