This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Howto make a script do anything every day,hour,month & y

Help for those learning Tcl or writing their own scripts.
Post Reply
G
Gorgo
Voice
Posts: 3
Joined: Mon May 29, 2006 10:04 am
Location: Helsingborg

Howto make a script do anything every day,hour,month & y

Post by Gorgo »

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.
G
GeeX
Voice
Posts: 29
Joined: Mon Sep 19, 2005 4:29 am

Post by GeeX »

Use:

Code: Select all

bind time -|- {00 * * * *} update:proc
For further infos check your docs folder ;)
G
Gorgo
Voice
Posts: 3
Joined: Mon May 29, 2006 10:04 am
Location: Helsingborg

Post by Gorgo »

GeeX wrote:Use:

Code: Select all

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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
G
Gorgo
Voice
Posts: 3
Joined: Mon May 29, 2006 10:04 am
Location: Helsingborg

Post by Gorgo »

Alchera wrote:
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 :)
Post Reply