Home » Infrastructure » Unix » file check in a directory (hp ux 11.3)
file check in a directory [message #627006] Thu, 06 November 2014 08:22 Go to next message
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

Re: file check in a directory [message #627016 is a reply to message #627006] Thu, 06 November 2014 09:25 Go to previous message
Michel Cadot
Messages: 68624
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Previous Topic: How to pass parameter from file to sqlplus in UNIX?
Next Topic: How to find alert log location in 10g if database is down.
Goto Forum:
  


Current Time: Thu Mar 28 10:12:49 CDT 2024