Return to awstats_update_all CVS log | Up to [Local Repository] / badi / public_scripts / awstats_update_all |
version 1.1, 2010/07/29 14:03:22 | version 1.2, 2010/07/31 11:54:46 |
---|---|
Line 26 if [ "$1" = "-q" ]; then | Line 26 if [ "$1" = "-q" ]; then |
fi | fi |
function count_proc() { | 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") | COUNT_PROC=$(ps -o command -u "$(id -u)" | egrep -cwe '^(/bin/sh|/usr/bin/perl)* *'"$AWSTATS_BIN") |
} | } |