【发布时间】:2017-07-28 10:13:08
【问题描述】:
我可以在 crontab 命令管道中传递密码以访问 git 存储库 ssh 服务器吗? 喜欢
*/10 * * * cd /path/gitpath/ && git pull ssh://user:password@XXX.XX.XX.XXX/path/reporitory.git
或者最好用密码来 cron 一个 bash 脚本?
【问题讨论】:
-
我的建议是带密码的 bash 脚本