Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions en/console-and-shells/cron-jobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ You can see more info here: http://en.wikipedia.org/wiki/Cron
.. tip::

Use ``-q`` (or `--quiet`) to silence any output for cronjobs.

Cron Jobs on Shared Hosting
---------------------------
On some shared hostings ``cd /full/path/to/root && bin/cake myshell myparam`` might not work. Instead you can use ``php /full/path/to/root/bin/cake.php myshell myparam``

.. note::
register_argc_argv has to be turned on by including ``register_argc_argv = 1`` in your php.ini.
If you cannot change register_argc_argv globally, you can tell the cron job to use your own configuration file (php.ini) by specifying it with ``-c /full/path/to/root/php.ini``. Example: ``php -c /full/path/to/root/php.ini /full/path/to/root/bin/cake.php myshell myparam``

.. meta::
:title lang=en: Running Shells as cronjobs
Expand Down