标签: bash watch inotifywait
我想从inotifywait中获取“文件”,“目录”和“动作”变量,并将它们放入“ script.sh”中,以便日后使用它们,如果有人可以帮助的话,
inotifywait -m PATH/TO/UPLOADS -e create -e moved_to | while read -r dir action file; do sh /root/script.sh /***** ***** Some codes goes here *****/
预先感谢