Changes

Jump to navigation Jump to search

Coral: cron configuration detail

3,125 bytes added, 13:46, 12 November 2011
Created page with "<div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font..."
<div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font-size:12px">'''''Coral'' :'''&nbsp; [[Coral: cron intro|CRON]] | [[Coral: cron configuration detail|CRON - Configuration detail]] | [[Coral: cron portable design|CRON - Portable Design]] | [[Coral: cron srvstart utility|CRON - SrvStart utility tutorial]]</span></div>

{|style="margin-top:5px;"
|-valign="top"
|
<span style="margin-bottom:5px;font-size:25px;color: #31799F;">CRON - Configuration detail</span>

This page adds more detail to the basic [[Coral: cron intro|Cron page]]. It covers additional user configuration and paths to appropriate files.


__TOC__

|
{| cellpadding="0" cellspacing="0" style="margin-left:6px;margin-bottom:5px;padding-left:6px;padding-right:6px;font-size:11px;background-color: #FFFFEB;border: 1px solid darkslateblue;"
|-
|colspan="2" style="font-weight:bold;"| UniServer&nbsp;8-Coral
|-
|&nbsp;||[[Coral: Introduction|Home]]
|-
|&nbsp;||[[Coral: start quick start|Quick Start]]
|-
|&nbsp;||[[Coral: general intro|General]]
|-
|&nbsp;||[[Coral: apache intro|Apache]]
|-
|&nbsp;||[[Coral: mysql intro|MySQL]]
|-
|&nbsp;||[[Coral: php intro|PHP]]
|-
|&nbsp;||[[Coral: msmtp intro|MSMTP]]
|-
|<span style="font-size: 14px;">»</span>||[[Coral: cron intro|CRON]]
|-
|&nbsp;||[[Coral: dtdns intro|DtDNS]]
|-
|&nbsp;||[[Coral: dbbackup intro|Db Backup]]
|-
|&nbsp;||[[Coral: perl intro|Perl]]
|-
|&nbsp;||[[Coral: index main|Main Index]]
|}
|}

==User Cron script-configuration==
Generally there is no need to edit the Cron script! However there is a user configuration section where you can disable logging or change the basic tick rate.

Open file: UniServer\uni_con\cron\'''run_cron.vbs'''<br />
Locate this section:

<pre>
'*** User configuration *******************************************************

logging = true 'true = Enable logging false = disable logging
cron_time = 60 'Set cron time (tick) in seconds. Default 60=1 Min
cron_loop = cron_time 'Set equal allows immediate first time run

'*************************************************** End User configuration ***
</pre>
Changing cron_time also changes the resolution time. Sixty seconds is a good compromise and ideal for testing scripts and running a production server.


==Test Scripts==

Three test files have been included and pre-configured in Cron’s configuration file. Each is a simple command-line script creating a text file when run.

* UniServer\uni_con\cron\cron_test\'''test_cron_1.bat''' File created: UniServer\uni_con\cron\cron_test\'''test_cron_1_result.txt'''
* UniServer\uni_con\cron\cron_test\'''test_cron_2.vbs''' File created: UniServer\uni_con\cron\cron_test\'''test_cron_2_result.txt'''
* UniServer\uni_con\cron\cron_test\'''test_cron_3.php''' File created: UniServer\uni_con\cron\cron_test\'''test_cron_3_result.txt'''


'''''[[#top | Top]]'''''
==Where to next==

[[Coral: cron portable design|CRON - Portable Design]]

'''''[[#top | Top]]'''''

----

[[Category: Uniform Server 8-Coral]]

Navigation menu