[TYPO3-mvc] cli_dispatch.phpsh runs on BE scheduler not in crontab

Henjo Hoeksma me at henjohoeksma.nl
Sun Feb 5 21:48:05 CET 2012


Maybe a rights issue? Did you check an error log?

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Fri, Feb 3, 2012 at 10:07, Rayuth You (Yuth) <rayuth at typo3cambodia.org>wrote:

> Hi list
>
> Using extbase 1.2.0, I run task scheduler in BE and it work fine.
> But I got nothing when I run from crontab
> 30 18 * * * php /var/www/demo/typo3/cli_**dispatch.phpsh scheduler
>
> My configuration
> ==============================**==============================**=========
> $settings = unserialize($GLOBALS['TYPO3_**CONF_VARS']['EXT']['extConf'][**
> 'myext']);
> $configuration = array(
>        'pluginName' => 'Pi1',
>        'extensionName' => 'myext',
>        'settings' => '< plugin.tx_myext.settings',
>        'persistence' => '< plugin.tx_myext.persistence',
>        'view' => '< plugin.tx_myext.view',
>        'persistence' => array(
>                'storagePid' => $settings['storagePid']
>        ),
>        '_LOCAL_LANG' => '< plugin.tx_myext._LOCAL_LANG',
>        'controller' => 'ControllerName',
>        'action' => 'actionName',
>        'switchableControllerActions' => array (
>                '1' => array('controller' => 'ControllerName', 'actions' =>
> 'actionName')
>        )
> );
> t3lib_div::_GETset(1,'id'); // Root page uid where we include plugin
> t3lib_div::_GETset('**ControllerName','tx_myext_pi1|**controller');
> t3lib_div::_GETset('**actionName','tx_myext_pi1|**action');
> $GLOBALS['TYPO3_CONF_VARS']['**EXTCONF']['extbase']['**
> extensions']['myext']['**modules']['Pi1']['controllers'**] = array(
>        'ControllerName' => array('actions' => array('actionName'))
> );
> $dispatcher = new Tx_Extbase_Dispatcher();
> $dispatcher->dispatch('', $configuration);
> return true;
> ==============================**==============================**=========
>
> Any solution or hint?
>
> Regards,
> Yuth
> --
> Khmer TYPO3 User Group
> Spirit of sharing
>
> Rayuth You
> Web Developer
>
> M: +855 11 262 078
> E: rayuth at typo3cambodia.org
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list