From 5c1566bcebb220ca856480f956b15b09be01ece6 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 6 Aug 2021 00:31:52 +0200 Subject: [PATCH] can run multiple times --- cron_MINUTE.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index dc1bc49..5ae6e8d 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -11,8 +11,6 @@ MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" -countMErunning=$(ps auxf --sort=+utime | grep -w $ME | grep -v -E 'color=auto|grep' | wc -l) -[[ $countMErunning -gt 2 ]] && echo "$ME already running $countMErunning time" && exit 0 source $HOME/.profile # CORRECT PATH