#!/bin/bash -l
[ -z "`squeue -u rthomas -o '\%30j' | grep $1`" ] && sbatch $1.sh

#!/bin/bash -l
[ -z "`squeue -u rthomas -o '\%35j' | grep $1`" ] && sbatch $1.sh

Handle even longer job names.
Handle even longer job names.
