Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux script that monitors file changes within folders (like autospec does!)

I want to automatically kick off a build whenever a file changes.

I've used autospec (RSpec) in Ruby and loved that.

How can this be done in bash?

like image 570
Ian Vaughan Avatar asked Jun 04 '10 09:06

Ian Vaughan


2 Answers

Take a look at incron and inotify-tools.

like image 161
Dennis Williamson Avatar answered Oct 11 '22 19:10

Dennis Williamson


keywords are inotifywait & inotifywatch commands

like image 22
zed_0xff Avatar answered Oct 11 '22 19:10

zed_0xff