log inotify in /tmp/astroport.inotify.log

This commit is contained in:
qo-op 2021-03-09 18:59:22 +01:00
parent cb25aa4472
commit 57db5b6104
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ if [[ "$YOU" == "xbian" ]]; then
inotifywaitRunning=$(ps auxf --sort=+utime | grep -w inotifywait | grep -w astroport | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1)
if [[ "$inotifywaitRunning" != "xbian" ]]
then
/usr/bin/inotifywait -r -e close_write -m /home/$YOU/astroport | while read dir flags file; do $MY_PATH/zen/new_file_in_astroport.sh "$dir" "$file"; done &
/usr/bin/inotifywait -r -e close_write -m /home/$YOU/astroport | while read dir flags file; do $MY_PATH/zen/new_file_in_astroport.sh "$dir" "$file"; done >> /tmp/astroport.inotify.log 2>&1 &
fi
fi