改变用户密码的脚本
#!/usr/bin/expect -f set user [lindex $argv 0] set newpwd [lindex $argv 1] set timeout 10 spawn passwd $user expect "*password:" {send "$newpwd\r"} expect "*password:" {send "$newpwd\r"} expect eof exit
create by cphmvp
email:cphmvp@163.com
爬虫技术交流_crawler QQ群 :167047843