I'm looking for something like an event listener on the file system. I want to touch a file (restart.txt to signal Phsuion Passenger to restart) everytime I save another file.
Does anyone know how to accomplish this on Linux (Ubuntu 14.04)?
This is just for Ruby development not for production!
Add a comment
|
1 Answer
from google. There's other solutions available also (fschanged, fileschanged, inotify solutions etc):
-
Thanks for the help. I used inotify and a script which I adjusted and found on ubuntuusers.de wiki.ubuntuusers.de/inotify– GernotDec 9, 2014 at 20:28