I have a R-script which runs multiple files say file=1 to 50.
I usually submit repeated jobs say 5 times with 10 files each time by changing the number in R-script.
So, how can I submit the 5-job at once without submitting the job 5 times? In addition, I want to update the **default.out** and **errorfile** for each job.
sample bash code:
#!/bin/bash
#PBS -l nodes=1:ppn=20,walltime=05:00:00
#PBS -m e
#PBS -o default.out
#PBS -e errorfile
module load R/4.0
Rscript ~/r_script1.R
Asked by b_takhel
(21 rep)
May 22, 2021, 07:54 PM
Last activity: Feb 13, 2025, 02:08 PM
Last activity: Feb 13, 2025, 02:08 PM