Installing Drupal on 4.0-Mona: Difference between revisions

Line 175: Line 175:
'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
=== run_cron.bat ===
=== run_cron.bat ===
This batch file uses '''unidelay.exe''' to provide a periodic tick. At the end of each delay PHP is run in CLI mode and runs script run_cron.php. the loop repeats indefinitely.   
This batch file uses '''unidelay.exe''' to provide a periodic tick. At the end of each delay PHP is run in CLI mode and runs script run_cron.php.


UniServer\'''run_cron.bat'''
UniServer\'''run_cron.bat'''
<pre>
<pre>
@echo off
rem ###################################################
rem # Created By: MPG (ric)
rem ###################################################
rem ## create a temp file with value run
(set /p dummy=run) >temp.txt <nul
rem ##cron loop every 60 seconds
:next
:next
udrive\home\admin\program\unidelay.exe 60
udrive\home\admin\program\unidelay.exe 60
udrive\usr\local\php\php.exe -n udrive\www\drupal\run_cron.php
udrive\usr\local\php\php.exe -n udrive\www\drupal\run_cron.php
goto :next
 
rem ## read file value
SET /P stop=<temp.txt
 
rem ## repeat cron loop if set to run
if %stop%==run goto :next
 
rem ## not set to “run” clean-up and exit
del temp.txt
exit
exit
</pre>
</pre>


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
=== run_cron_hidden.bat ===
=== run_cron_hidden.bat ===
The above batch file if run directly would be visible hence this batch file uses '''uniserv.exe''' to run the above hidden.   
The above batch file if run directly would be visible hence this batch file uses '''uniserv.exe''' to run the above hidden.   
7

edits