sunetdrive/templates/scriptreceiver/clear_scriptherder.erb.sh

6 lines
201 B
Bash

#!/bin/bash
for job in $(/usr/local/bin/scriptherder | grep -Ev " OK |Start|^$|===" | awk -F ' ' '{print $9}'); do
/usr/local/bin/scriptherder --mode wrap --syslog --name "${job}" -- /bin/true
done