From da9cb0c3acf6f4bd1c6dd472f68f1875866e1cc7 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 12 Jun 2023 11:20:51 +0200 Subject: [PATCH] Add echo to show the function is running --- zsh/scripts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/scripts b/zsh/scripts index c3581d1..7c83214 100644 --- a/zsh/scripts +++ b/zsh/scripts @@ -102,6 +102,7 @@ function extract () { # Monitor IP/Host and report with Pushover pnotify-online() { local ip_address="$1" + echo "Monitoring $ip_address …" while true; do if ping -c 1 -W 1 "$ip_address" >/dev/null; then @@ -114,6 +115,8 @@ pnotify-online() { pnotify-offline() { local ip_address="$1" + echo "Monitoring $ip_address …" + while true; do if ! ping -c 1 -W 1 "$ip_address" >/dev/null; then echo "$1 is offline now."