I have singularity installed on /usr/local/bin and want to launch singularity from my slurm scirpt on my linux cluster but I keep getting this error "error:/var/spool/slurm/d/job01485/slurm_script: line 21: singularity: command not found"
Am I setting my path correctly?
Here is the important parts of my slurm script:
#!/bin/bash
#BATCH --mail-user=
##SBATCH --mail-type=ALL
##SBATCH --nodes=2 # comments allowed
##SBATCH --ntasks=1
#SBATCH --time=00:10:00
##SBATCH --mem=500M
#SBATCH --output=test4.out
export PATH=$PATH:/usr/local/bin
echo $PATH
# where are we running?
pwd
hostname
singularity exec s.simg hostname
# which OS is this?
cat /etc/issue
singularity exec s.simg