[TYPO3-english] cli_dispatch.phpsh runs on command line but not cron?
Jigal van Hemert
jigal at xs4all.nl
Fri Jul 1 07:53:28 CEST 2011
Hi,
On 1-7-2011 2:28, Scotty C wrote:
> I did not know that the Scheduler/cron frequency lengths were significant (I had
> the cron set at every minute, and Scheduler at 24 hours , so that's why the
> Scheduler wouldn't trigger. Now that I do and again combined with the previous
> comments, everything runs great now.
The cron set at every minute and Scheduler at 24 hours should work, but
might not have the effect you expect. You could see the Scheduler as the
cron inside TYPO3. The advantage is that you only need to set up a
single cron job and never have to bother a sysadmin again if you need a
scheduled task inside TYPO3.
Your operating system (let's call it Linux :-) ) will fire it's "cron"
task every minute. It will look in its list of cronjobs and check which
it needs to run.
The scheduler will actually do the same. Every time the cronjob starts
the scheduler (via the dispatch script) the scheduler will look in its
list of tasks to see which it needs to run. It checks each task, sees if
the calculated next run time is already passed and fires the task if
that is the case.
The cronjob can be seen as the master clock for the scheduler. It
determines how often you can run a scheduled task and also how accurate
you can schedule a task.
More and more extensions include configuration of a scheduler task. This
makes it easier to run tasks at certain times because you don't have to
work with the crontab any more. Some hosting companies also limit the
number of cronjobs you may set up; with Scheduler you only need a single
cronjob.
Great that you got it working!
--
Kind regards / met vriendelijke groet,
Jigal van Hemert.
More information about the TYPO3-english
mailing list