对于每天要执行的重复命令,自然放到macro里比较好。
connect 'xxx.xxx.xxx.xxx:22 /ssh /auth=password /user=[username] /passwd=[password]'
wait '$'
sendln 'cd /opt/app/weblogic/'
wait '$'
sendln 'll *.log'
connect 'xxx.xxx.xxx.xxx:22 /ssh /auth=password /user=[username] /passwd=[password]'
wait '$'
sendln 'cd /opt/app/weblogic/'
wait '$'
sendln 'll *.log'