From 6a49cb92185c989b03daeaba3c4e1682b7e56bb5 Mon Sep 17 00:00:00 2001 From: hinmanjp Date: Mon, 4 Nov 2024 21:57:21 -0700 Subject: [PATCH] log output to system log --- getssl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/getssl b/getssl index d762666e..a45827a0 100755 --- a/getssl +++ b/getssl @@ -2963,6 +2963,11 @@ fi # Main logic ############ +# log results to system log - if the logger utility is in the path +if [ $(which logger) ] ; then + exec 1> >(logger -s -t $(basename $0)) 2>&1 +fi + # Get the current OS, so the correct functions can be used for that OS. (sets the variable os) get_os