UL scripting changes

This commit is contained in:
Petr Nyc
2025-06-24 09:51:16 +02:00
parent a9a135ca0b
commit 64d163dc1a
4 changed files with 142 additions and 7 deletions

View File

@@ -13,13 +13,13 @@ CURL=/usr/bin/curl
source "${BINDIR}/lib/logging.sh"
TARGET="${1-11.4.81.0.1.195.1}"
TARGET="${1-11.4.83.0.1.195.1}"
# log::info "TARGET:${TARGET}"
log::info "TARGET:${TARGET}"
URL="http://grt.us.oracle.com/grt/webservice/grtList/?gate=240&show=All&gateName=S11.4-SRU&status=1&target=${TARGET}"
# log::debug $URL
log::debug $URL
output=$(/opt/homebrew/bin/w3m "$URL" -M -cols 400 -graph -dump 2>&1)
@@ -28,7 +28,7 @@ out=$(echo "$output" | awk '/^Details.*Consolidation/ {found=1; next} found')
if [[ -z "$out" ]];
then
# log::debug "output: ### $out ###"
# log::info "There are no queued RTIs for \"${TARGET}\". Nothing to do..."
log::info "There are no queued RTIs for \"${TARGET}\". Nothing to do..."
exit 0
fi