Some of the common options that one might use with sbatch are:
- -J=<name-of-job> – Use <name-of-job> instead of the default job name which is the script file name.
- -i=/path/to/dir/inputfilename – Use the “inputfilename” as input file for this job.
- -o=/path/to/dir/outputfilename – Use the “outputfilename” as the output file for this job.
- -e=/path/to/dir/errorfilename – Use the “errorfilename as the file name for errors encountered in this job.
- -n=<number> – The number of tasks to run, also specifies number of slots needed.
- –mem=<MB> – The total memory needed for the job, use if more than the default is needed
- –mail-user=[email protected] – Send mail to your GMU email account
- –mail-type=BEGIN,END – Send email before and after end of job.
Read the man pages (man sbatch) for more sbatch options.