Is there a way that I can programmatically figure out whether a particular file with certain characteristics is being added into say the linux /tmp folder. All I need to create, is a small script that is automatically called every time a new file is added in the tmp folder.
Advertisement
Answer
These links might be helpful: Inotify and Inotify-tools.