forked from axiom-team/astrXbian
log inotify in /tmp/astroport.inotify.log
This commit is contained in:
parent
cb25aa4472
commit
57db5b6104
|
@ -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)
|
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" ]]
|
if [[ "$inotifywaitRunning" != "xbian" ]]
|
||||||
then
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue