摘要: 命令: find /utxt/soft/scmd/log/ -mtime +2 -type f -name '*.log*' -exec rm -f {} \; 远程: expect -c " spawn ssh -p22088 -A -q -\oStrictHostKeyChecking=no s 阅读全文
posted @ 2021-11-04 14:53 新茶煮酒 阅读(57) 评论(0) 推荐(0) 编辑
摘要: /usr/bin/expect << EOF spawn /usr/bin/ssh -t -p 22088 -oStrictHostKeyChecking=no sms@${ip} "su " expect { "*assword*" { send "Eastcom@!@#\n" } } expec 阅读全文
posted @ 2021-11-04 11:02 新茶煮酒 阅读(636) 评论(0) 推荐(0) 编辑