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.

time issue

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

time issue

Post by iamdeath »

Code: Select all

bind time - "?0 * * * *" proc:name
bind time - "15 * * * *" proc:name
What makes it perform the proc in 10 minutes, when I want it to perform it in every 15 minutes, I don't want to usetimer since I am already using a timer. So I wanted to use time bind. Can you please suggest me.

Thanks
iamdeath
|AmDeAtH @ Undernet
Death is only the *Beginning*...
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Use four binds for 00, 15, 30, and 45...
NML_375
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Code: Select all

bind time - "00 * * * *" proc:name
bind time - "15 * * * *" proc:name
bind time - "30 * * * *" proc:name
bind time - "45 * * * *" proc:name
Something like that?
|AmDeAtH @ Undernet
Death is only the *Beginning*...
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Yes...
NML_375
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Thanks it's under testing procedure right now as soon as it's working fine or any errors I'll bug you again :P

Thanks once again nml you rock you simply rock.

but can you also tell me for my knowledge that how can I use bind time if I have somthing to be performed in 1 hour and 59 minutes. I don't want it to be used exactly after 2 hours but 110 minutes.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
CrazyCat
Revered One
Posts: 1334
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

bind time is based on system time, not on a delay.
But you can, if you don't want to use a timer, add a bind time in wich you specify the future time on action.
And don't forget to unbind it when the proc is laucnhed.

http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm could be a friend of yours
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This should be of use for you.
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Thanks alot cat and sirfz.. it's pretty useful i'll read and try to use those tricks in my scripts.. nml so far your trick worked.. thanks to all of you.

iamdeath
|AmDeAtH @ Undernet
Death is only the *Beginning*...
Post Reply