Shell script checking modification date of folder
by TravisBrooker from LinuxQuestions.org on (#5FMT5)
Dear all,
i want to write a shell script,
i have a folder and in each month on 5th day there is file creating under this folder and then system is reading it and file is disappearing.
what i want is, in every month 5th day the script should run a time in a day, and i want to be sure that the file has been received under this folder or not.
how i can able to do this? i only think that better to check the modification date of folder, because file is disappearing in couple of second as soon as it is coming under folder.
any idea?
thank you in advance.


i want to write a shell script,
i have a folder and in each month on 5th day there is file creating under this folder and then system is reading it and file is disappearing.
what i want is, in every month 5th day the script should run a time in a day, and i want to be sure that the file has been received under this folder or not.
how i can able to do this? i only think that better to check the modification date of folder, because file is disappearing in couple of second as soon as it is coming under folder.
any idea?
thank you in advance.