The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 10-21-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,763
You can cron every minute if you need it. crontab entry
Code:
* * * * * [[ -f /path/to/file/filename ]] && mv /path/to/file/filename /path/to/storage/
This is not a great idea because if the file is ftp'ed to your system you may get a partial file if ftp has not completed. Change the ftp process to transfer a small dummy file after the real file is already there. Then search for the dummy file and then mv both files if you find the dummy.