Scheduling jobs based on filesystem activity with incron

Posted by Scott_Ruecker on Aug 20, 2008 11:50 PM
By Linux.com
Mail this story
Web version

There are numerous documents, tutorials and guides detailing the workings and usage of cron, the de facto tool for scheduling jobs on Linux. While traditional cron jobs are executed at set times, inotify cron, or incron, is a cron clone that watches the filesystem for specified changes and executes the relevant commands. You can set incron to monitor a particular file or directory for changes and schedule jobs for when those changes occur. Fedora users can use yum to install incron with the yum install incron command. Once installed, you need to start the incron daemon before you can schedule jobs. The command, service incrond start, executed as root, will start the incron daemon on and the chkconfig incrond on command will configure it to be started at boot time.

Full Story

Printed at http://lxer.com/module/newswire/view/107394/index.html