I want to automatically trigger a shell command when a file is modified. I think this can be accomplished in code by registering an inotify hook and call to system
, however is there a higher level bash command that can accomplish this?
Try inotify-tools. I'm having problems copying the link (sorry), but there is a wiki on GitHub which yu should be able to find with G-search-engine.
我没有解决您的问题,但我发现这个很好的程序,你可以使用你要求的功能: cwatch
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.