« Previous 1 2 3
Look for file changes and kick off actions with Watchman
On Guard
Conclusion
Watchman is a flexible tool under active development. Even if its usage seems unfriendly, learning some basic functionality can help you accomplish complex tasks with your own scripts. Here, I looked at two use cases: triggering rsync and a real-time virus scanner. Instead of triggering an action, you could also simply query Watchman for changes that happen inside a directory during a given period. The uses for Watchman are numerous: No doubt a number of applications have occurred to you already.
Infos
- Watchman: https://facebook.github.io/watchman/
- Installation: https://facebook.github.io/watchman/docs/install.html
- Authentication without password with SSH and rsync: http://www.teachmejoomla.net/code/misc/authentication-without-password-with-ssh-and-rsync.html
- Simple pattern syntax: https://facebook.github.io/watchman/docs/simple-query.html
- ClamAV: http://www.clamav.net/
- Linux Malware Detect : https://www.rfxn.com/projects/linux-malware-detect/
- SmartOS: https://smartos.org
- watchman-pkgsrc GitHub site: https://github.com/alcir/watchman-pkgsrc/blob/master/files/manifest.xml
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy ADMIN Magazine
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Most Popular
Support Our Work
ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.