From b602afbac7830ea21808c1d228a4e3b619ece732 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 6 Mar 2021 22:31:15 +0100 Subject: [PATCH] inotifywait --- cron_MINUTE.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 47c3b3c..8896513 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -98,11 +98,9 @@ fi # ON Rpi/xbian files added in ~/astroport are monitored to activate "new_file_in_astroport.sh" # Transfert ~/astroport/*/files to IPFS and make Astroport/KODI indexes in IPNS if [[ "$YOU" == "xbian" ]]; then - echo "XBIAN" [[ ! -e /home/$YOU/astroport ]] && mkdir -p /home/$YOU/astroport # VERIFY LAUNCH inotifywait ?! inotifywaitRunning=$(ps auxf --sort=+utime | grep -w inotifywait | grep -w astroport | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1) - echo "inotifywaitRunning = $inotifywaitRunning" 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 &