This commit is contained in:
2024-07-31 12:24:00 -04:00
parent 6c771ad1a1
commit c6b99f6678
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -29,8 +29,9 @@ do
for host in ${hosts}
do
echo "===================="
echo "${host}"
ssh ${User}@${host}.${Domain} 'crontab -l' | tee ${RootDir}/${User}/${host}.cron
echo "${host}:${User}"
Cmd="ssh ${User}@${host}.${Domain} 'crontab -l' | tee ${RootDir}/${User}/${host}.cron"
echo ${Cmd} && eval ${Cmd}
done
done