From 67ea8152e2ec985b1eade2162a7ef65617205961 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Wed, 18 Sep 2024 14:39:31 +0200 Subject: [PATCH] log thinlinc and vnc sessions also. --- scripts/qutselect_connect_tlinc.sh | 4 ++-- scripts/qutselect_connect_vnc.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/qutselect_connect_tlinc.sh b/scripts/qutselect_connect_tlinc.sh index 7080795..7b863f6 100755 --- a/scripts/qutselect_connect_tlinc.sh +++ b/scripts/qutselect_connect_tlinc.sh @@ -61,11 +61,11 @@ if [[ "$(hostname)" != "${serverName}" ]]; then # than supplying it on command-line cmdArgs="$cmdArgs -P cat" # shellcheck disable=SC2086 - echo ${password} | ${TLCLIENT} ${cmdArgs} ${serverName} &>/dev/null & + echo ${password} | ${TLCLIENT} ${cmdArgs} ${serverName} >/tmp/tlinc-${USER}-$$.log 2>&1 & res=$? else # shellcheck disable=SC2086 - ${TLCLIENT} ${cmdArgs} ${serverName} &>/dev/null & + ${TLCLIENT} ${cmdArgs} ${serverName} >/tmp/tlinc-${USER}-$$.log 2>&1 & res=$? fi diff --git a/scripts/qutselect_connect_vnc.sh b/scripts/qutselect_connect_vnc.sh index 14ebb5a..2c6a5ed 100755 --- a/scripts/qutselect_connect_vnc.sh +++ b/scripts/qutselect_connect_vnc.sh @@ -70,7 +70,7 @@ if [[ "${password}" != "NULL" ]]; then echo "${VNCVIEWER} ${cmdArgs} ${serverName}" fi # shellcheck disable=SC2086 - VNC_PASSWORD="${password}" ${VNCVIEWER} ${cmdArgs} "${serverName}" 2>/dev/null >/dev/null + VNC_PASSWORD="${password}" ${VNCVIEWER} ${cmdArgs} "${serverName}" >/tmp/vnc-${USER}-$$.log 2>&1 res=$? else # make sure a password dialog pops up @@ -79,7 +79,7 @@ else echo "${VNCVIEWER} ${cmdArgs} ${serverName}" fi # shellcheck disable=SC2086 - ${VNCVIEWER} ${cmdArgs} "${serverName}" &>/dev/null + ${VNCVIEWER} ${cmdArgs} "${serverName}" >/tmp/vnc-${USER}-$$.log 2>&1 res=$? fi