linux shell腳本登陸遠程執行命令,交互經過腳本

expect -c "    set timeout 15    spawn ssh root@172.16.17.34    expect *password* { send ××××××\r }    expect \"]#\"    send \"cd /\r\"    send \"tar jxvf name.tar.bz2\r\"    expect \"]#\"    send \"c
相關文章
相關標籤/搜索