From 9a73dfb90b55a4c336d2667cdad5b4ad2a0df9ad Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Dec 17 2019 10:03:05 +0000 Subject: send only last 100 lines from log via email --- diff --git a/withemail.sh b/withemail.sh index 3bf4cc6..5fcd0e7 100755 --- a/withemail.sh +++ b/withemail.sh @@ -35,7 +35,7 @@ print_email() { echo echo "log:" echo "----------------------------------------" - cat "$LOG_FILE" + tail -n 100 "$LOG_FILE" } send_email() {