Hi, I have a requirement to copy files from a windows network drive to a Linux server using shell script based on the last created date.
Ex:
FileName CreatedDate/Time
F1 05-01-2012 3:00 PM
F2 05-01-2012 3:15 PM
F3 05-01-2012 2:00 PM
When i run the shell script for the first time it should move the file F3, next time when i run the shell script it should move the file F1. Please suggest me. Also when copy is done file needs to be deleted from network drive.
Thanks in Advance.