An "inotify cron" system.. #Inotify cron #Filesystem events #Table manipulator #Incron #Inotify #Cron
incron is an "inotify cron" system. It works like the regular cron but is driven by filesystem events instead of time periods.
incron contains two programs, a daemon called "incrond" (analogous to crond) and a table manipulator "incrontab" (like "crontab").
Because this version is very early it does not contain a standard portable build mechanism. There is only a Makefile which must be modified manually. On many Linux systems you need not to change anything.
Please review the Makefile BEFORE you type 'make'. Especially check the PREFIX and other common variables. If done you can now build the files ('make').
The binaries must be of course installed as root. Note that the installer creates a special user called 'incron' which manages the incron tables.
The incron daemon (incrond) must be run under root (typically from runlevel script etc.). It loads the current user tables and hooks them for later changes.
The incron table manipulator may be run under any regular user since it SUIDs. For manipulation with the tables use basically the same syntax as for the crontab program. You can import a table, remove and edit the current table.
The user table rows have the following syntax:
< path > < mask > < command >
Where:
< path > is a filesystem path (currently avoid whitespaces!) < mask > is a symbolic (see inotify.h; use commas for separating symbols) or numeric mask for events < command > is an application or script to run on the events
The command may contain these wildcards:
$$ - a dollar sign $@ - the watched filesystem path (see above) $# - the event-related file name Example: You need to run program 'abc' with the full file path as an argument every time a file is changed in /var/mail. One of the solutions follows: /var/mail IN_CLOSE_WRITE abc $@/$#
System requirements
- Linux kernel 2.6.13 or later (with inotify compiled in)
- inotify headers (inotify.h, inotify-syscalls.h) installed in /sys. The most common place is /usr/include/sys.
- GCC 4.x compiler (probably works also with GCC 3.4, possibly with older versions too)
incron 0.5.10
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- incron-0.5.10.tar.gz
- main category:
- System
- developer:
- visit homepage
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
calibre 7.9.0
IrfanView 4.67
Zoom Client 6.0.0.37205
Windows Sandbox Launcher 1.0.0
7-Zip 23.01 / 24.04 Beta
Bitdefender Antivirus Free 27.0.35.146
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
paint.net 5.0.13 (5.13.8830.42291)
ShareX 16.0.1
- 4k Video Downloader
- paint.net
- ShareX
- Microsoft Teams
- calibre
- IrfanView
- Zoom Client
- Windows Sandbox Launcher
- 7-Zip
- Bitdefender Antivirus Free