From c659f514b7246adae2c084bb7ac79e3b9fb83da1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Jul 2025 14:33:19 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 5b23d29..f5605cd 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -543,7 +543,7 @@ GETCRONTABS(){ checkhost=$(CHECK_HOST ${host_ip[$hostid]}) if [ "${checkhost}" != "false" ]; then echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs, and copycerts.sh if it exists ... ${idsCL[Default]}${idsST[Reset]}" - output=$(${SSHCMD} root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd}) & + ${SSHCMD} root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} else echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}" fi @@ -575,8 +575,8 @@ GETCRONTAB(){ # [ "${nmip}" != "" ] && crontab -l | sshpass -p${1} ssh -o 'StrictHostKeyChecking no' nm_crontab_user@${nmip} "cat > ${DS_CRONTAB_FOLDER}/${hostname}.crontab" - # else - # echo "No user password specified" + else + echo "No user password specified" fi } FIXCRONTAB(){