Is it possible to create a trigger trigger's in Linux, that run if a software doses any changes in a particular file or folder.
Could you recommend be any tutorial that could help me in that.
Thanks
Is it possible to create a trigger trigger's in Linux, that run if a software doses any changes in a particular file or folder.
Could you recommend be any tutorial that could help me in that.
Thanks
Take a look at inotify. You can use it with things like Perl's Linux::Inotify2. Or, whatever other hooks you want to put into it.
From the man page:
Name
inotify - monitoring file system events
Description
The inotify API provides a mechanism for monitoring file system events. Inotify can be used to monitor individual files, or to monitor directories. When a directory is monitored, inotify will return events for the directory itself, and for files inside the directory.