...
Code Block | ||
---|---|---|
| ||
#!/bin/bash #SBATCH -N 1 # number of nodes #SBATCH -c 8 # number of cores #SBATCH -t 0-01:00:00 # time in d-hh:mm:ss #SBATCH -p general # partition #SBATCH -q public # QOS #SBATCH -o slurm.%j.out # file to save job's STDOUT (%j = JobId) #SBATCH -e slurm.%j.err # file to save job's STDERR (%j = JobId) #SBATCH --mail-type=ALL # Send an e-mail when a job starts, stops, or fails #SBATCH --mail-user="%u@asu.edu" #SBATCH --export=NONE # Purge the job-submitting shell environment #Load R module module load r-4.4.0-gcc-12.1.0 #Run the R script Rscript example.pyR |
Step 4: Submit the sbatch job
...