Linux:expect实现自动拉取git代码

安装 $ yum install expect $ where expect 使用 $ expect expect1.3> expect "hi" {send "hello\n"} hi hello 自动拉取git代码 主要解决自动输入帐号密码的问题,若是是ssh拉取就不须要使用了 gitpull.expgit #!/usr/bin/expect set user [lindex $argv 0]
相关文章
相关标签/搜索