diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 85adc21..799bfa7 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -1,17 +1,22 @@ #!/bin/bash ######################################################################## # Author: Fred (support@qo-op.com) -# Version: 0.2 +# Version: 0.3 # License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) ######################################################################## MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" +# _ _____ ____ _ _______ ________ ____ +# | | / / | / __ \/ | / / _/ | / / ____/ / / / +# | | /| / / /| | / /_/ / |/ // // |/ / / __ / / / +# | |/ |/ / ___ |/ _, _/ /| // // /| / /_/ / /_/_/ +# |__/|__/_/ |_/_/ |_/_/ |_/___/_/ |_/\____/ (_|_) + ######################################################################## ### MODIFY WITH GREAT CARE!!! MUST BE BUG FREE !!!!! -### EVERY STATION RUN THIS SCRIPT EVERY MINUTE -### DEPENDING ON EXE AND PS +### EVERY STATION RUN THIS SCRIPT EVERY MINUTE. isMinetestRunning=$(ps auxf --sort=+utime | grep -w minetest | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1) isG1smsRunning=$(ps auxf --sort=+utime | grep -w gammu | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1) #isNextcloudRunning=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1)