From 57db5b6104028426d5fe7a1391cffba48a02f9cc Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 9 Mar 2021 18:59:22 +0100 Subject: [PATCH] log inotify in /tmp/astroport.inotify.log --- cron_MINUTE.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index db7e161..cdd1c7d 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -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