How to use day or scavenge partitions for a job

I am trying to run a shell script but I am receiving this error:

sbatch: error: Jobs shorter than 24 hours cannot be submitted to the week partition.
sbatch: error: Please use the day or scavenge partitions for these jobs.
sbatch: error: Batch job submission failed: Unspecified error

How do I switch to using the day or scavenge partitions for the job?

Hi April,

It looks like you might have already figured this out, but to submit to different partitions you can use the -p or --partition option for sbatch:

sbatch -p day my_script.sh

You can also include that in your batch script as part of the #SBATCH header:

#SBATCH --partition day