摘要:
which expect vim do1.sh for i in `cat iplist` do /usr/bin/expect <<EOF spawn ssh -o StrictHostKeyChecking=no $i "命令" #我们可以用id命令来试验 expect "*password:" 阅读全文
摘要:
#!/bin/bash # 清理pod节点内日志 pod_log_clean() { # last_time=1440 # 3天前的直接删除 find /var/lib/docker/overlay2/ -type f -regextype 'posix-egrep' -regex '.*merge 阅读全文