I'v lots bjobs running on lsf, jobs have two status, RUN and PEND. And I want to kill all bjobs with PEND status, how to do that use script? A hard-coded way I think is saving them in a file then parse every line to get the status and key. If the STAT is PEND then pass the key to
bkill $key
. But this is very complicated, is there any bkill function that can directly do this or a non hard-coded way to kill jobs with a specific status or name?
Asked by cdnszip
(253 rep)
Oct 12, 2016, 08:03 AM
Last activity: Mar 1, 2022, 03:30 PM
Last activity: Mar 1, 2022, 03:30 PM