--- badi/public_scripts/awstats_update_all/awstats_update_all 2010/07/29 14:03:22 1.1 +++ badi/public_scripts/awstats_update_all/awstats_update_all 2010/07/31 11:54:46 1.2 @@ -26,7 +26,7 @@ if [ "$1" = "-q" ]; then fi function count_proc() { - # count how many instances are already COUNT_PROC + # count how many instances are already running COUNT_PROC=$(ps -o command -u "$(id -u)" | egrep -cwe '^(/bin/sh|/usr/bin/perl)* *'"$AWSTATS_BIN") }