Looking for a powerful "inotify cron" system for your Linux system? Try out incron and automate tasks based on filesystem events!
incron operates by monitoring filesystem events and executing specified commands based on those events. By setting up user tables with defined paths, masks, and commands, you can automate various tasks easily.
Before compiling, review the Makefile to ensure correct configurations. Once ready, run 'make' to build the files. Keep in mind that binaries must be installed as root, and 'incrond' should be run under root for loading user tables.
The 'incrontab' tool allows users to manipulate tables with ease. Import, remove, and edit table entries using a syntax similar to the traditional 'crontab' program. Utilize wildcards in commands for dynamic actions.
For instance, to run the program 'abc' with the full file path as an argument whenever a file is changed in '/var/mail', use the following syntax:
/var/mail IN_CLOSE_WRITE abc $@/$#
Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!
SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.
Subscribe to newsletter
© Copyright 2024, SoftPas, All Rights Reserved.