[Typo3] CRON or Scheduled task for typo3 3.8

Henning Pingel henning.pingel at gmx.de
Thu Sep 22 20:12:26 CEST 2005


Luc Gagnier wrote:
> Hi Henning,
> 
> The problem is that I don't know how to start it if it's not by clicking 
> on a button into a web page.  I don't find how I can start it outside of 
> Typo3. I know that scheduled task can start a job in Windows, but what 
> script to start : I click on a button in a page...  How can I found and 
> simulate the action made by the click ??
> 

Hi Luc,

Well I've never used the ldap_sync / ldap_server extensions. But if the 
functionality you want is included in those extensions you should have a 
close look at the php-classes provided by these extensions. Maybe there 
is a class that does exactly what happens when you press the button. 
(Using a php debugger should help you to figure that out).

If there is a class that does the trick you could write a php script 
that uses this class. The class should not have any "graphical" HTML 
output ideally (and if, it should'nt matter). So you can start your own 
php script (which has no "graphical" HTML-output either) via the php 
command line interface (on windows + php4 it is php/cli/php.exe). See 
the php documentation for further details.

Once you can start the sync from command line you are also able to put 
this command into a scheduled task (directly or via a batch file).

Best regards,
Henning



More information about the TYPO3-english mailing list