dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit d0db307c25266ccb4ff25521fed68d35eae14f87
parent 54c92f7991e44572b296a9e5b1f886dcc0444f60
Author: hhvn <hayden@haydenvh.com>
Date:   Mon, 15 Feb 2021 20:27:27 +0000

.scripts/bin/uptimemon: add mx1.haydenvh.com

Diffstat:
M.scripts/bin/uptimemon | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.scripts/bin/uptimemon b/.scripts/bin/uptimemon @@ -19,9 +19,9 @@ d=$HOME/net/exec/uptime -for s in matrix local irc1 irc2 dumbterm.haydenvh.com phony.haydenvh.com port.haydenvh.com +for s in matrix local irc1 irc2 dumbterm.haydenvh.com phony.haydenvh.com port.haydenvh.com mx1.haydenvh.com do - curr=$(ssh $s uptime | grep -v 'min,' | awk '{print $3}' | grep '^[^:]*$' || echo 0) + curr=$(ssh $s uptime | grep 'days' | awk '{print $3}' | grep '^[^:]*$' || echo 0) ssh $s uptime >/dev/null && down=n || down=y # run the cmd again - variable can't be set # in substitions [ ! -f $d/$s ] && echo "curr $curr" > $d/$s