file - How do i monitor a directory creation on linux using ruby and get notified via email -


then indicates that I already have the directory / source / version / 1, / source / version / 2, / source / Version / 3 I will monitor a new directory / source / version / 4, and send an email if any such directory is actually created.

The Linux kernel subsystem that allows a file to receive notifications of file system changes, such as directories The construction, which is called, is called. There is one, but there is not much documentation available for this.

There is a daemon to monitor file system changes (using inotophy). There is a client that produces the output in the console whenever there is a change. You can pipe this output into your Ruby script and parse it.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -