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]
相關文章
相關標籤/搜索