|
@ -1,5 +1,6 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
BASEDIR=$(dirname "$0") |
|
|
FILE=${1:-listes.txt} |
|
|
FILE=${1:-listes.txt} |
|
|
|
|
|
|
|
|
if ! command -v parallel >/dev/null; then |
|
|
if ! command -v parallel >/dev/null; then |
|
@ -7,6 +8,8 @@ if ! command -v parallel >/dev/null; then |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
cd "$BASEDIR" |
|
|
|
|
|
|
|
|
echo -n "" >.errors |
|
|
echo -n "" >.errors |
|
|
parallel -a "$FILE" ./monit-sympa.sh |
|
|
parallel -a "$FILE" ./monit-sympa.sh |
|
|
|
|
|
|
|
|