I have scheduled a crontab job in AIX 6.1 OS to run twice in an hour which runs for the whole day to process a load.
The load which crontab kicks off needs files to arrive at a particular directory and if the files arrive, I process them.
It so happens that for the 24 times the crontab kicks off my load there would be only 7 times I actually receive the files and for the rest of the times I receive no files and the load reports saying that no files received and I cannot preict when files arrive as it can arrive anytime.
I heard that a DAEMON can be setup in Unix which can monitor for files arriving at a particular destination and call other scripts after that.
I was thinking if it were possible to create a daemon to monitor a particular destination and if files are present, It can call a shell script.
Is this possible, if yes how can I code the daemon. I have no prior experience with daemons. Can anyone clarify.