1 2 3 4 5 6 7
#!/bin/bash if [ "$#" -ne 2 ]; then echo "Provide two arguments (number of minutes to allocate)" >&2 exit 1 fi salloc -N 1 --partition=$2 --gres=gpu:4 -t $1