From 421c670e26f4dbdf700e718b1638186842235003 Mon Sep 17 00:00:00 2001 From: menzel Date: Wed, 15 Jul 2026 12:41:21 +0200 Subject: [PATCH] epics2sms: include the running user in the startup notification Add "by " (effective user via id -un) to the startup message so recipients can see who started the monitor. Co-Authored-By: Claude Opus 4.8 (1M context) --- EPICS2SMS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EPICS2SMS.sh b/EPICS2SMS.sh index 215907e..1a8a8c0 100755 --- a/EPICS2SMS.sh +++ b/EPICS2SMS.sh @@ -272,7 +272,7 @@ fi # Send a brief startup notification so recipients know the monitor is running # and what it watches. Best-effort: a failure here must not stop monitoring. -startup_body="EPICS2SMS started $(date '+%F %T') on $(hostname -s), ${#pids[@]} monitor(s):" +startup_body="EPICS2SMS started $(date '+%F %T') by $(id -un) on $(hostname -s), ${#pids[@]} monitor(s):" for line in "${summaries[@]}"; do startup_body+=$'\n'"- $line" done