diff --git a/dsmon.sh b/dsmon.sh index 31c3616..3d210f8 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -304,7 +304,7 @@ GETCRONTABS(){ for hostid in "${!host_ip[@]}"; do checkhost=$(CHECK_HOST ${host_ip[$hostid]}) if [ "${checkhost}" != "false" ]; then - if ! root@${host_ip[$hostid]} command -v sshpass > /dev/null; then + if ! ssh -tq root@${host_ip[$hostid]} command -v sshpass > /dev/null; then ssh -tq root@${host_ip[$hostid]} apt install -yq sshpass > /dev/null 2>&1 fi echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs${idsCL[Default]}${idsST[Reset]}"