[TYPO3-english] scheduler task (only certain hours)
Xavier Perseguers
xavier at typo3.org
Tue Jun 12 15:46:08 CEST 2012
Hi,
Stefan Franke wrote:
> Is there a way to have a scheduler task only be executed during the night? E.g. the scheduler is called by the cron job every hour, 24/7, but my particular task should only be executed every hour from 8pm to 4am. Is there some trick to achieve this?
>
> (I'm using TYPO3 4.5.15)
This is possible to give a "cron" definition (first line as header for you):
# m h dom mon dow
17 * * * *
This has to be entered as
17 * * * *
in the input field
This means every hour at xx:17
For your case, for instance every 15 minutes but only between midnight
and 4 AM this would be:
*/15 0-4 * * *
or another format would be
0,15,30,45 0-4 * * *
Just search Google for the different format of a cron command.
HTH
--
Xavier Perseguers
Release Manager TYPO3 4.6
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-english
mailing list