
我怎樣才能得到http://localhost:8888/site_name/index.php每 30 分鐘運行一次,直到我手動停止它(編輯 cron 檔案)?這是在運行 MAMP 的 Mac 上。
我知道如何使用 cpanel 中的嚮導進行設置,但以前從未在 MAMP 上這樣做過。
答案1
以下是在 OSX 上使用 cron 的指南:http://www.macosxhints.com/article.php?story=2001020700163714
在 cron 中(crontab -e
在終端機中)輸入:
0,30 * * * * 根部捲曲http://localhost:8888/site_name/index.php> /dev/空