从文件获取变量到另一个文件

时间:2020-04-07 16:06:53

标签: 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
*****/

预先感谢

0 个答案:

没有答案
相关问题