Quellcode durchsuchen

chore(nml): update script to delete all nsg jobs

Ankur Sinha (Ankur Sinha Gmail) vor 10 Monaten
Ursprung
Commit
dd815fcd77
1 geänderte Dateien mit 17 neuen und 0 gelöschten Zeilen
  1. 17 0
      NeuroML2/clean-nsg-jobs.sh

+ 17 - 0
NeuroML2/clean-nsg-jobs.sh

@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Copyright 2023 Ankur Sinha
+# Author: Ankur Sinha <sanjay DOT ankur AT gmail DOT com> 
+# File : 
+#
+
+
+nsgr_job -l | cut -f2 -d ' ' > joblist.txt
+
+while IFS="" read -r line ; do
+    echo "Deleting job: ${line}"
+    nsgr_job -j ${line} -r
+done < joblist.txt
+
+echo "All jobs deleted"
+echo "Please delete joblist.txt"