AIX listeners?

I have a file directory which I want to monitor - when a new file arrives I want to start a script. Are there any utilities which can do this (aside from DB2, Oracle, Websphere, etc).

I just want a "simple" listener which will invoke a script.

hi edi,

i am sorry but i don't have time 2 write the script for you , but i guess i can give u the logic

  1. write a "while" loop always true
  2. capture filename inside a folder using ls and maintain a list
  3. when the number of filenames increase , compare new list and old list
  4. within the script start a new shell to launch ur other script.
  5. run the main script "listener" in the background using "&"

i guess this works

add a sleep to the loop to it so it doesn't thrash the box,

run it through nice so real work takes priority