Skip to content

Commit

Permalink
Test de protection pour login1
Browse files Browse the repository at this point in the history
  • Loading branch information
plstonge committed Feb 26, 2024
1 parent 17a5399 commit ec305ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/crunch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

if [ -z "$SLURM_TMPDIR" ]; then
echo "Erreur: ce script doit être utilisé à partir d'un noeud de calcul."
echo "Vous devez d'abord lancer la commande salloc avant $0"
exit
fi

SYNTAXE="Syntaxe: bash $0 --cpu|--gpu [1|4]"

if [ "$#" -lt 1 ]; then
Expand Down

0 comments on commit ec305ac

Please sign in to comment.