看板 Linux 關於我們 聯絡資訊
小弟有個每分鐘執行的 script 想要比較 SVN 版本 當 SVN 版本有更新的時後 自動執行 PHP 的指令 爬了一下似乎沒找到有相似的功能 不知道各位先進是否有相關的經驗指教 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.125.155.100 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1536039574.A.406.html
Jerr: 試試看抓output用test檢查然後 && php some.php 09/04 14:36
Jerr: 概念 test x$(echo x) = xx && echo is xx 09/04 14:38
hijkxyzuw: if [ `svn -V` != 1.0 ] 09/04 17:33
hijkxyzuw: then php my.php 09/04 17:33
hijkxyzuw: fi 09/04 17:33
LINGZ: 我懷疑svn版本的意思是指repo rev,非svn --version 09/05 08:32
Kitten1156: 你要的可能是hook script吧 09/06 05:58
dlintw: svn status --show-updates 09/06 18:13