Configuring event-triggered commands with Incron

TRIGGER HAPPY

Article from Issue 76/2007
Author(s):

While cron doggedly keeps to a fixed schedule, Incron monitors directories and runs commands when changes occur.

Cron is a constant companion for admins like myself. My crontab and I have both grown over the years – Crontab has gotten longer, and I’ve gotten wider. Maybe I’m sentimental, but I decided it was time to let my old friend venture out into unexplored territory with a little help from Incron. This cron extension uses an event triggered approach, rather than traditional time-based scheduling, monitoring directories, and running commands when specific changes occur.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Monitoring with incron

    The incron utility provides an easy way to initiate commands and scripts triggered by filesystem events.

  • Charly's Column: iWatch

    Recently, sys admin Charly was faced with the task of synchronizing a directory on a server with two NFS-mounted clients. He wanted the whole thing to happen quickly and to be easily manageable, which ruled out DRBD and GlusterFS.

comments powered by Disqus