egginfo logo
egginfo.org Knowledgebase
Search:     Advanced search
Browse by category:

BIND TIME

Add comment
Views: 1137
Votes: 0
Comments: 0
Posted: 03 Jan, 2009
by: Gh0st ..
Updated: 03 Jan, 2009
by: Gh0st ..
bind time <flags> <mask> <proc>
proc-name <minute> <hour> <day> <month> <year>

bind time - <mask> proc_time
proc proc_time {min hour day month year} {
...
}


or/

proc proc_time {m h d m y} {
...
}


The <mask> is a set of 5 intergers that can include wildcards.
The format is in the order min hour day month year

EXAMPLES:

1)  To run the code every hour (i.e. 12:00, 13:00, 14:00 etc...)
      bind time - "00 * * * *" proc

2)  To run code at half past each hour (i.e. 12:30, 13:30, 14:30 etc..)
      bind time - "30 * * * *" proc

3)  You can use this to run the code every 10 minutes by using a wildcard
      bind time - "?0 * * * *" proc

4)  To run code once a day (i.e. mid-day below) you would use:
      bid time - "00 12 * * *" proc
Others in this Category
document setudef - set user defined channel flags



RSS

eXTReMe Tracker