Skip to content

Instantly share code, notes, and snippets.

@jelmervdl
Created April 11, 2023 11:28
Show Gist options
  • Save jelmervdl/2a64f2320f981447ac8adb9e3f54b9b7 to your computer and use it in GitHub Desktop.
Save jelmervdl/2a64f2320f981447ac8adb9e3f54b9b7 to your computer and use it in GitHub Desktop.
Slurm utilities
#!/bin/bash
set -euo pipefail
scontrol show job $1 |
grep -oP '(?<=StdErr=).*' |
xargs less -SN
#!/bin/bash
for job_id in $(squeue --user $USER --noheader --format '%i' --job $1); do
scontrol show job $job_id | grep -oP '(?<=StdErr=).*'
done |
xargs tail -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment