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