0

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!

2

from google. There's other solutions available also (fschanged, fileschanged, inotify solutions etc):

https://gist.github.com/mikesmullin/6401258

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.