代码: 全选
Process process = Runtime.getRuntime().exec("useradd xxx")
我想应该是linux提示输入密码的步骤
不知道应该怎么写。
代码: 全选
Process process = Runtime.getRuntime().exec("useradd xxx")
代码: 全选
tlcr: 0 庚寅年六月十九日 22:14:26 ~
>> ds-打印脚本.bash fq.exp
#!/usr/bin/expect -f
# ssh连接的expect脚本
spawn ssh -D 7070 -l vpn.net.in 178.18.17.78
expect {
"*(yes/no)*" { send "yes\r" }
"*password*" { send "776ee36b436d648\r" }
}
expect "*Last login*" { interact }
tlcr: 0 庚寅年六月十九日 22:16:20 ~
>>
代码: 全选
] ls -ld //