file check in a directory [message #627006] |
Thu, 06 November 2014 08:22 |
|
kiranrathodkr916
Messages: 36 Registered: March 2014 Location: India
|
Member |
|
|
I need a script to monitor a directory for incoming new files .
If files are not received for last 1 hour or if the received file is empty in that 1 hour then do so some something.
What I tried
find . -cmin -60 -a -size 0
No need to check the new files with existing files.All the incoming files are new file. I m completely new to unix
[Updated on: Thu, 06 November 2014 08:27] Report message to a moderator
|
|
|
|