Skip to content

Instantly share code, notes, and snippets.

@leelasd
Created November 17, 2017 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leelasd/2035759df2e8400dcbdaf0e7f1a4f134 to your computer and use it in GitHub Desktop.
Save leelasd/2035759df2e8400dcbdaf0e7f1a4f134 to your computer and use it in GitHub Desktop.
SLURM BOSS Submissions
#!/bin/bash
#SBATCH --job-name=scavenge
#SBATCH --time=00:10:00
#SBATCH --array=0-14
#SBATCH --ntasks=1
# the environment variable SLURM_ARRAY_TASK_ID contains
# the index corresponding to the current job step
echo $SLURM_ARRAY_TASK_ID
cd $SLURM_ARRAY_TASK_ID
tcsh -c "source ~/.cshrc; tcsh soscmd15.Q_ANH $SLURM_ARRAY_TASK_ID"
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment