Versions Compared

Key

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

...

Now imagine you have to run the “Hello World” command or something much more complex a thousand times. Nobody wants to type that simple text string a thousand times. Let’s write a batch script to do that for us (if you’re unfamiliar with shell scripting or working with the command line, see The Command Line Interface for more information).

Using nano or vi, create a script with a meaningful name. For example: nano mybatch.sh
and enter the following lines:

#!/bin/bash
#SBATCH --account=<insert the name of your project>
#SBATCH --time=00:01:00
echo "Hello World!"

...

You’ve taken your first steps into the world of HPC at UWyo. More detailed information is available in the Slurm Workload Manager page and its child pages.