From 31452f0df30695c6e9bc1de7ad50194149ca1e5d Mon Sep 17 00:00:00 2001 From: Stefanie Eckner Date: Sat, 16 Mar 2024 11:29:11 +0100 Subject: supress verbose output --- computer-time-limit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/computer-time-limit b/computer-time-limit index c27dca1..4b826e8 100755 --- a/computer-time-limit +++ b/computer-time-limit @@ -53,7 +53,7 @@ wie_lange_noch() { check_time() { if [ "${noch}" -le 0 ]; then - sende_msg stop "$1" + sende_msg stop "$1" >/dev/null loginctl session-status | sed -n 's/ .*$//;1p' | xargs -r loginctl terminate-session fi if [ "${noch}" -lt 3630 ] && [ "${noch}" -gt 3570 ]; then @@ -100,7 +100,7 @@ is_logged_in() { stop_all() { for key_file in "${keys[@]}"; do - sende_msg stop "${key_file}" + sende_msg stop "${key_file}" >/dev/null done } @@ -115,7 +115,7 @@ while true; do wie_lange_noch "${key}" check_time "${user}" "${key}" else - sende_msg stop "${key}" + sende_msg stop "${key}" >/dev/null fi done sleep $((15 + ((noch + 15) % 30))) -- cgit v1.2.3-70-g09d2