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