-
-
Save jelmervdl/2a64f2320f981447ac8adb9e3f54b9b7 to your computer and use it in GitHub Desktop.
Slurm utilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
scontrol show job $1 | | |
grep -oP '(?<=StdErr=).*' | | |
xargs less -SN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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