QuestionQ23

VerifiedOperating and managing AI compute platforms (GPUs, CPUs, DPUs)

An administrator must submit a script named “my_script.sh” to Slurm and set a custom output file named “output.txt” to store the job’s standard output and error.

Which sbatch option should be used?

Explanation

The -o (--output) option directs a batch script’s standard output to the specified file. Unless a separate error file is configured with -e, Slurm directs standard error to that same output file by default.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!