Skip to content

Instantly share code, notes, and snippets.

@cig0
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cig0/913ac45f6dfbb264c8ab to your computer and use it in GitHub Desktop.
Save cig0/913ac45f6dfbb264c8ab to your computer and use it in GitHub Desktop.
incrontab -l | { cat; echo '/watchme/path IN_CLOSE_WRITE /bin/whatever $@/$#'; } | incrontab -
incrontab -l | { cat; echo '/mnt/sites/test/BO/mfs_merged/public/lookupImg/BO/carousel IN_CLOSE_WRITE /home/multicore/bin/t.bash $@/$#,$%'; } | incrontab -
Refs:
http://linuxaria.com/article/incron-cron-inotify
http://stackoverflow.com/questions/878600/how-to-create-cronjob-using-bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment