From 67528374cd0c427e45ae98d822876329c09c2873 Mon Sep 17 00:00:00 2001 From: Matthias Johnson Date: Sat, 14 Feb 2026 16:35:52 -0700 Subject: [PATCH] Add -o flag to include job output in notifications Fetches the last N lines of journal output (default 10) via journalctl and includes them in desktop/email notification bodies. Supports CLI (-o 5) and edit mode (o or o=5 flag syntax). Also fixes systemd %s specifier expansion in email printf format strings (must use %%s so systemd passes %s through to the shell). Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 6 +++--- README.md | 6 +++++- systab | 46 ++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 46 insertions(+), 12 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9efab78..95a0fd2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,11 +18,11 @@ No build step. The script requires `bash`, `systemctl`, and optionally `notify-s The script has two modes controlled by CLI flags: -- **Job creation** (`-t