git自动拉取脚本
yum安装expect
编写一下sh脚本,另存为gitpull.sh
#!/usr/bin/expect # cd /home/wwwroot/b2c_aaa spawn git pull expect "git@1.1.1.4's password:" exp_send "git\r" interact
yum安装expect
编写一下sh脚本,另存为gitpull.sh
#!/usr/bin/expect # cd /home/wwwroot/b2c_aaa spawn git pull expect "git@1.1.1.4's password:" exp_send "git\r" interact