فهرست منبع

Add crontab example

Girish Ramakrishnan 8 سال پیش
والد
کامیت
55a2f294d5
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      index.php

+ 4 - 0
index.php

@@ -87,7 +87,11 @@ sftp -P 2222 surfer.nebulon.info:public/
 <h2>Cron</h2>
 <p>
   Just put a file called crontab to the directory /app/data and it will picked up at next app restart. It has to be in the cron syntax without username.
+  For example, the following crontab updates feeds every hour:
 </p>
+<pre>
+0 * * * * php /app/code/update.php --feeds
+</pre>
 <p>
   Commands are executed as the user www-data. See <a href="https://linux.die.net/man/5/crontab">manpage</a> for a description of the file.
 </p>