Update dsmon.sh

This commit is contained in:
2023-07-04 20:41:56 -05:00
parent 337216a2c2
commit 779b3710f9

View File

@@ -333,7 +333,8 @@ GETCRONTABS(){
}
GETCRONTAB(){
crontab -l | sshpass -p${1} ssh -o 'StrictHostKeyChecking no' nm_crontab_user@10.10.10.50 'cat > /opt/idssys/nodemgmt/crontabs/$(hostname).crontab'
hostname=$(hostname)
crontab -l | sshpass -p${1} ssh -o 'StrictHostKeyChecking no' nm_crontab_user@10.10.10.50 'cat > /opt/idssys/nodemgmt/crontabs/${hostname}.crontab'
}