I have an application that needs to process large files after they are uploaded to the system. In Linux, is it possible to detect folder changes and have a script run automatically, or should I just run a cron job every minute to look for new files?
Linux – How to programmatically react to folder changes
linux
Related Topic
- Linux – Which free antivirus can I use for a php application
- Linux Web Server – Proper Permissions for Website Files and Folders
- Determine if a File is Being Written to in Linux
- Linux – How long do uploaded files stay in the tmp folder in Linux Ubuntu
- Linux – How to detect what is changing file ownership on Linux
- Linux – Upload files from vsftpd ftp client in /tmp and once they are uploaded, move them to original folder
- Linux – How precise is a cron daemon
- Linux – Execute command when a file changes
Best Answer
Checkout inotify. If your running a recent kernel it will be included. There are numerous APIs for numerous languages out there for it.