Skip to content
Mariusz Łączak edited this page Feb 14, 2014 · 1 revision

CLI was moved to private folder, so now to run task:

cd /path/base-app/private
php index.php task action

Sometimes some big task it is better to split into smaller and run by bash instead of php (due to the limit of the execution time). You can use Each.sh script:

cd /path/base-app/private
sh Each.sh task/action task2/action2

First task/action should return IDS eg. 1 5 7 13, generated by

echo implode(' ', array(1, 5, 7, 13));

If count IDS > 0 script for each IDS will launch a TASK2 ACTION2 ID. You can also debug output from task2/action2 by specify third param:

sh Each.sh task/action task2/action2 debug
Clone this wiki locally