You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
364 B
18 lines
364 B
#!/bin/bash
|
|
|
|
FILE=${1:-listes.txt}
|
|
|
|
if ! command -v parallel >/dev/null; then
|
|
echo "Please install GNU Parallel: \`sudo apt install parallel\`"
|
|
exit 1
|
|
fi
|
|
|
|
echo -n "" >.errors
|
|
parallel -a "$FILE" ./monit-sympa.sh
|
|
|
|
if [[ -f .errors ]]; then
|
|
echo "--------------------"
|
|
echo " $(cat .errors | wc -l) errors detected!"
|
|
echo "--------------------"
|
|
cat .errors
|
|
fi
|