Also output line

This commit is contained in:
ekzyis 2023-11-23 21:35:24 +01:00
parent ab5fd49157
commit 13513fed41
1 changed files with 1 additions and 0 deletions

View File

@ -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