Skip to content

eliotik/cron_actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cron_actions

Extension for eZ Publish

Push events to cronjob

Example of use:

CronActions::push(
    array(
        'class' => 'ClassName',
        'method' => 'MethodName',
        'data' => array(
            'ArgumentName' => 'ArgumentValue'
        ),
        'description' => "Some usefull description"
    ),
    300
);

Example of crontab configuration:

# The path to the eZ Publish directory.
EZPUBLISH=/var/vhosts/www/ezpublish

# Location of the PHP command line interface binary.
PHPCLI=/usr/bin/php

*/1 * * * * cd $EZPUBLISH && $PHPCLI runcronjobs.php cronactions 2>&1 | /usr/bin/mail -s "crontab actions" WRITE@YOUR.MAIL

About

Push events to cronjob

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages