#!/usr/bin/expect
set password "xxxx" spawn su root expect ":" send "$password\r" interact本文共 138 字,大约阅读时间需要 1 分钟。
#!/usr/bin/expect
set password "xxxx" spawn su root expect ":" send "$password\r" interact转载于:https://my.oschina.net/jackhen/blog/1143159