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

2 months ago
  1. #!/bin/bash
  2. FILE=${1:-listes.txt}
  3. if ! command -v parallel >/dev/null; then
  4. echo "Please install GNU Parallel: \`sudo apt install parallel\`"
  5. exit 1
  6. fi
  7. echo -n "" >.errors
  8. parallel -a "$FILE" ./monit-sympa.sh
  9. if [[ -f .errors ]]; then
  10. echo "--------------------"
  11. echo " $(cat .errors | wc -l) errors detected!"
  12. echo "--------------------"
  13. cat .errors
  14. fi