From 5bbe48b799e557145f98e3a88d48cf5dc3d00cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sam=20Minn=C3=A9e?= Date: Sat, 25 May 2013 18:54:54 +1200 Subject: [PATCH] Update commandline.md --- docs/en/topics/commandline.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/topics/commandline.md b/docs/en/topics/commandline.md index b10f35a7e..b6bebb73f 100644 --- a/docs/en/topics/commandline.md +++ b/docs/en/topics/commandline.md @@ -131,18 +131,18 @@ On a unix machine, you can typically run a scheduled task with a [cron job](http using one of the following command-line calls: ``` -/path/to/site_root/framework/sake MyTask -php /path/to/site_root/framework/cli-script.php MyTask +/path/to/site_root/framework/sake dev/tasks/MyTask +php /path/to/site_root/framework/cli-script.php dev/tasks/MyTask ``` If you find that your cron job appears to be retrieving the login screen, then you may need to use `php-cli` instead. This is typical of a cPanel-based setup. ``` -php-cli /path/to/site_root/framework/cli-script.php MyTask +php-cli /path/to/site_root/framework/cli-script.php dev/tasks/MyTask ``` A good approach to setting up and testing your task to run with cron is: - 1. Try running the task via the command-line on your server. `/path/to/site_root/framework/sake MyTask` - 2. Set up a cron job to run the task every minute. `* * * * * /path/to/site_root/framework/sake MyTask` - 3. Finally, set the task to run when you want it to. `0 2 * * * /path/to/site_root/framework/sake MyTask` (2am) + 1. Try running the task via the command-line on your server. `/path/to/site_root/framework/sake dev/tasks/MyTask` + 2. Set up a cron job to run the task every minute. `* * * * * /path/to/site_root/framework/sake dev/tasks/MyTask` + 3. Finally, set the task to run when you want it to. `0 2 * * * /path/to/site_root/framework/sake dev/tasks/MyTask` (2am)