#!/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