You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
389 B
22 lines
389 B
#!/bin/bash |
|
|
|
WEB=$1 |
|
TMP=.status.tmp |
|
|
|
wget -qO $TMP $WEB |
|
|
|
STATUS=$(grep "Termination Status" $TMP | perl -pe "s/.*\<dd\>(.+)\<.*/\1/" |
|
) |
|
REV=$(grep "Updating " $TMP | grep -Eo "[[:alnum:]]{7}\.\.[[:alnum:]]{7}") |
|
|
|
if [ "$STATUS" == "Success" ]; then |
|
STATUS="fin" |
|
elif [ "$STATUS" == "running..." ]; then |
|
STATUS="run" |
|
fi |
|
|
|
if [ "$REV" = "" ]; then |
|
REV="(uncond)" |
|
fi |
|
|
|
echo "$STATUS;r$REV"
|
|
|