I don't know if I am asking in the right place. I need to write a program which triggers a cronjob/script whenever a text file has been created. The cronjob/script will copy the file name to an index file. But I am not getting, how to inform my cronjob/script that a new file had been created. I think it has to be informed by the OS. But I may be wrong.
Again, I don't know if I am asking at the right place and hope you all will show some light to this problem.