Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here is an example bash script to process the myfiles.lst into a series of submitted sbatch commands. You would want to edit the opts line to request the resources needed, and the outs line can also be edited tooif needed.  Leave the echo line in to see what happens, then remove the echo, leaving the sbatch command: sbatch $opts $outs --wrap='R --no-save < $filenm' .

...

The 'while read filenm; do' line iterates over each line passed to it, copying the line into the filenm variable.

To run this just use the cat function to pipe (pass) the file of R scripts to the bash script. Here is what would get submitted.

...