验证中...
Languages: PHP
Categories: Web开发技术
Latest update 2018-12-09 10:12
shell.php
Raw Copy
<?php
shell_exec("sh /shell/git_pull.sh");
// shell_exec("cd /shell/ && git pull");
shell.sh
Raw Copy
cd /shell
git pull
var=`date "+%Y-%m-%d %H:%M:%S"`
echo ${var} >> /shell/git_pull.log

Comment list( 0 )

You need to Sign in for post a comment

Help Search