From 13513fed4188095d870be4d38be130e746300acc Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 23 Nov 2023 21:35:24 +0100 Subject: [PATCH] Also output line --- stream-notify.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/stream-notify.sh b/stream-notify.sh index 2745463..94a0c8c 100644 --- a/stream-notify.sh +++ b/stream-notify.sh @@ -13,6 +13,7 @@ ssh vps "tail -n 0 -f $1" | stdbuf -o0 grep error | while IFS= read -r line do title=$(basename $1) d=$(date "+%Y/%m/%d %H:%M:%S %Z") + echo "$d $line" body="$d\n$line" notify-send "$title" "$body" done