sunetdrive/templates/scriptreceiver/clear_scriptherder.erb.sh

6 lines
201 B
Bash
Raw Normal View History

2023-03-22 07:28:28 +00:00
#!/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