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
相关文章
相关标签/搜索