摘要:
while read line do user=`echo $line | cut -d " " -f 2` ip=`echo $line | cut -d " " -f 1` passwd=`echo $line | cut -d " " -f 3` expect <<EOF set timeou 阅读全文
posted @ 2020-12-15 19:47
vmsysjack
阅读(1138)
评论(0)
推荐(0)
摘要:
#!/bin/bash pw=123456 function vncpw(){ /usr/bin/expect <<eof set timeout 10 spawn vncpasswd expect "Password:" send "$pw\n" expect "Verify:" send "$p 阅读全文
posted @ 2020-12-15 19:38
vmsysjack
阅读(458)
评论(0)
推荐(0)
摘要:
#!/bin/bash #定义一个变量pw pw=123456 function vncpw(){ /usr/bin/expect <<eof set timeout 10 spawn vncpasswd expect "Password:" send "$pw\n" expect "Verify: 阅读全文
posted @ 2020-12-15 19:00
vmsysjack
阅读(276)
评论(0)
推荐(0)
浙公网安备 33010602011771号