摘要:
命令: find /utxt/soft/scmd/log/ -mtime +2 -type f -name '*.log*' -exec rm -f {} \; 远程: expect -c " spawn ssh -p22088 -A -q -\oStrictHostKeyChecking=no s 阅读全文
摘要:
/usr/bin/expect << EOF spawn /usr/bin/ssh -t -p 22088 -oStrictHostKeyChecking=no sms@${ip} "su " expect { "*assword*" { send "Eastcom@!@#\n" } } expec 阅读全文