From 285f6dc5326d5ee32f28571c64a10d5b201fa6be Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 19 Nov 2023 15:59:18 +0000 Subject: [PATCH] add stdout_to_notis.sh --- stdout_to_notis.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 stdout_to_notis.sh diff --git a/stdout_to_notis.sh b/stdout_to_notis.sh new file mode 100755 index 0000000..604832b --- /dev/null +++ b/stdout_to_notis.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# small script to turn the stdout output of a program into notifications line-by-line +# intended for use when a script is not being called from a terminal, but from a GUI application so that output can still be seen + +while read line +do + notify-send "$line" +done