User Tools

Site Tools


uphp:library_functions:add_cron

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:library_functions:add_cron [2021/04/07 09:26]
admin
uphp:library_functions:add_cron [2021/09/13 05:57]
Line 1: Line 1:
-======add_cron====== 
- 
-<badge>WattmonOS 3.12+</badge> 
- 
-Add a script to be executed by the CRON scheduler 
- 
-====Library==== 
- 
-<html><pre><span style="font-size:125%;color:green">/lib/uphp/system.inc</span></pre></html> 
- 
-====Description==== 
- 
-<well size="sm"><html> 
-<span style="font-size:125%;color:green"> 
-<span style="color:black">add_cron ( 
-<span style="color:green">string 
-<span style="color:blue">$filneame 
-<span style="color:black">, 
-<span style="color:green">string 
-<span style="color:blue">$interval 
- 
-<span style="color:black"> 
-) 
-</html></well> 
- 
-Add a script to be executed by the CRON scheduler after a reboot. 
- 
-====Parameters==== 
- 
-<html><b><span style="color:blue">$filename<span style="color:black"></b></html>: Full path to filename to be executed 
- 
-<html><b><span style="color:blue">$interval<span style="color:black"></b></html>: CRON-compatible interval using the following format: 
-<html><pre>second  minute   hour    dow</pre></html> 
-                
-^ Field   ^ Description                                                                                                     ^ 
-| second  | execution second, can be * (every second), */x (i.e. */5 for every 5 seconds), or any number between 0 and 59   | 
-| minute  | execution minute, can be * (every minute), */x (i.e. */15 for every 15 minutes), or any number between 0 and 59  | 
-| hour    | execution hour, can be * (every hour), * /x (i.e. * /2 for every 2 hours), or any number between 0 and 23  | 
-| dow     | execution day of the week, can be * (every day), or a value 0-6 (sunday to monday)  | 
- 
-For example: " 0     *"  would execute the script once an hour 
- 
-====Return Values==== 
- 
-  none   
- 
- 
- 
- 
  
uphp/library_functions/add_cron.txt · Last modified: 2021/09/13 05:57 (external edit)