02_1c_1d_1p_pub 629 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. printf "$PRINTFPATTERN" $0 : "1 Compilation. 1 Dossier. 1 Projet. Pad Public."
  3. URL_BASE=https%3A%2F%2Fpad.exegetes.eu.org%2Fp%2Fg.DSXI1kGFT1gjor66%24Abro-REP-Tele2-Principal
  4. URL_GARDE=https%3A%2F%2Fpad.exegetes.eu.org%2Fp%2Fg.DSXI1kGFT1gjor66%24Abro-REP-Tele2-Garde
  5. DOSSIER=MonDossier$$
  6. PROJET=Abro2$$
  7. OUTPUT=$(./cocktail -v \
  8. -a sHaKe \
  9. -d "$DOSSIER" \
  10. -p "$PROJET" \
  11. -b "$URL_BASE" \
  12. -g "$URL_GARDE" 2>&1 >/dev/null)
  13. RC=$?
  14. echo -n "RC=$RC "
  15. if test "$RC" -ne "0";
  16. then
  17. # Test raté
  18. echo "[FAILED]"
  19. else
  20. echo "[ OK ]"
  21. fi
  22. echo "$OUTPUT"
  23. exit "$RC"