| View previous topic :: View next topic |
| Author |
Message |
Gorgo Voice
Joined: 29 May 2006 Posts: 3 Location: Helsingborg
|
Posted: Mon May 29, 2006 10:10 am Post subject: Howto make a script do anything every day,hour,month & y |
|
|
| Hi, I working on a script that I whant to show how many hour , days , month and years a channel are. I whant to update the database every hour, that oart I know. please help me with this, give me sone hint to go on to the work, I'm stuck right now. |
|
| Back to top |
|
 |
GeeX Voice
Joined: 19 Sep 2005 Posts: 29
|
Posted: Mon May 29, 2006 10:49 am Post subject: |
|
|
Use:
| Code: |
bind time -|- {00 * * * *} update:proc
|
For further infos check your docs folder  |
|
| Back to top |
|
 |
Gorgo Voice
Joined: 29 May 2006 Posts: 3 Location: Helsingborg
|
Posted: Mon May 29, 2006 10:54 am Post subject: |
|
|
| GeeX wrote: | Use:
| Code: |
bind time -|- {00 * * * *} update:proc
|
For further infos check your docs folder  |
That I know, then it will run the script every hour, but need to know how it can check witch month it is so it can update monght. same for year and hour also. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon May 29, 2006 9:48 pm Post subject: |
|
|
| Quote: | TIME (stackable)
bind time <flags> <mask> <proc>
proc-name <minute> <hour> <day> <month> <year>
Description: allows you to schedule procedure calls at certain times. mask matches 5 space separated integers of the form: "minute hour day month year". minute, hour, day, month have a zero padding so they are exactly two characters long; year is extended to four characters in the same way. flags are ignored. |
The above may be a little more descriptive. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Gorgo Voice
Joined: 29 May 2006 Posts: 3 Location: Helsingborg
|
Posted: Tue May 30, 2006 4:56 am Post subject: |
|
|
| Alchera wrote: | | Quote: | TIME (stackable)
bind time <flags> <mask> <proc>
proc-name <minute> <hour> <day> <month> <year>
Description: allows you to schedule procedure calls at certain times. mask matches 5 space separated integers of the form: "minute hour day month year". minute, hour, day, month have a zero padding so they are exactly two characters long; year is extended to four characters in the same way. flags are ignored. |
The above may be a little more descriptive. |
Thanks for that  |
|
| Back to top |
|
 |
|