From 067a5d553a08169acafb92259ccc5abc751aa7c0 Mon Sep 17 00:00:00 2001 From: Hyacinthe Cartiaux Date: Fri, 13 Jan 2023 00:03:17 +0100 Subject: [PATCH] [bash] bash_slurm - fix scol --- bash/bash_slurm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/bash_slurm b/bash/bash_slurm index 663236f..9c4bd63 100755 --- a/bash/bash_slurm +++ b/bash/bash_slurm @@ -26,4 +26,6 @@ alias sqlu='squeue -la -u $USER' alias sd=' sinfo -d' alias i=' srun -p interactive --qos qos-interactive --time=5:0 --pty bash -i' alias ix=' srun -p interactive --qos qos-interactive --time=5:0 --x11 --pty bash -i' -alias scol='sinfo -o "%E|%T|%100N" -p all | grep -e '\(drain\|down\)' | column -t -s'|' | tail -n+2 | sort' +scol() { + sinfo -o "%E|%T|%100N" -p all $* | grep -e '\(drain\|down\)' | column -t -s'|' | tail -n+2 | sort +}