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