如果有人可以提供帮助,我想从 inotifywait 中获取“file”、“dir”和“action”变量并将它们放入“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
*****/
提前致谢
如果有人可以提供帮助,我想从 inotifywait 中获取“file”、“dir”和“action”变量并将它们放入“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
*****/
提前致谢