diff --git a/check_cronstatus b/check_cronstatus index b2a73491361ccc4412456b01aa880e29e8b1e43b..a9245a0ca9929b4315d30f7a14d8d583f929666d 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -26,6 +26,7 @@ # 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page # 2023-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output # 2024-04-03 v2.3 <axel.hahn@unibe.ch> add NO_COLOR=1 to supress color and emojis +# 2024-04-24 v2.4 <axel.hahn@unibe.ch> add short status on top of details # ====================================================================== @@ -96,6 +97,8 @@ else ph.setStatus "ok" fi ph.status Cronjob status $( echo "$out" | tail -1 ) + $statusScript -s + echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | tr '|' ':' fi ph.exit