I would like to get "file", "dir" and "action" variables from inotifywait and get them into "script.sh" to use them later on, if anyone can help:
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
*****/
Thanks in advance