我想在修改文件时自动触发shell命令.我认为这可以通过注册inotify挂钩并调用来在代码中完成system,但是有更高级别的bash命令可以实现这一点吗?
system
linux filesystems bash inotify
bash ×1
filesystems ×1
inotify ×1
linux ×1