![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Monitor directory and email | dhawalkv | UNIX for Dummies Questions & Answers | 6 | 07-06-2009 07:03 AM |
| Monitor capacity of directory | LRoberts | Shell Programming and Scripting | 1 | 06-01-2009 11:58 AM |
| Monitor file changed / created events on big FS | magics | HP-UX | 0 | 05-26-2009 07:50 AM |
| script to monitor directory | nulinux | Shell Programming and Scripting | 17 | 08-22-2008 10:28 AM |
| Hep with script to monitor directory | cmf00186 | UNIX for Dummies Questions & Answers | 2 | 10-25-2006 02:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
monitor directory events
I'm am looking for a cheap way to trigger a script when a new file is written in a specific directory. AIX 5.3. It is a production system, so no kernel patching (i.e. inotify).
Filemon and audtiing are too expensive. Thanks in advance. |
|
||||
|
cronjob checks for the file, if it's there run a script
cronscript.sh: Code:
if [ -f /yourfile ] then yourscript.sh fi Code:
* * * * * /cronscript.sh >/dev/null 2>&1 something like Code:
find /directory -cmin -1 -type f -exec /yourscript.sh {}\;
Edit: forgot to say, when using ctime, a file will be processed again when it's modified too, so you should move them elsewhere after first procesing Last edited by funksen; 07-02-2009 at 04:03 AM.. |
|
||||
|
thanks but I was looking for something that traps the events instead of checking via cron
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| directory events trigger |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|