Update dsmon.sh

This commit is contained in:
2025-07-05 14:32:34 -05:00
parent 716a43f587
commit b61d24bc22

View File

@@ -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]}"
${SSHCMD} root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} &
output=$(${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