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.

bind time triggering every 5 minutes help

Old posts that have not been replied to for several years.
Locked
g
gorydetailz

bind time triggering every 5 minutes help

Post by gorydetailz »

Hello there, fellow eggdroppers.

Is there any way to make a "bind time" trigger every five minutes? I tried the crontab style

bind time - "*/5 * * * *" my_proc

... but that doesn't seem to work. Also,

bind time - "?5 * * * *" my_proc

... will only trigger on minutes ending of 5, which is not what I want. So, I'm stuck. Anyone care to shed a little light? Thanks!
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

bind time - "?5 * * * *" my_proc
bind time - "?0 * * * *" my_proc

would trigger it all 5 mins (x0 and x5)
or you try a timer

timer 5 myproc
proc myproc { args } {
do something
timer 5 myproc
}
User avatar
CrazyCat
Revered One
Posts: 1348
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Using the recursive timer is quite dangerous: when you rehash your eggdrop (so, usually when you test the tcl), you'll enable a lot of timers :)
So, think to restart the eggdrop when your tcl is ok.
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

CrazyCat wrote:Using the recursive timer is quite dangerous: when you rehash your eggdrop (so, usually when you test the tcl), you'll enable a lot of timers :)
So, think to restart the eggdrop when your tcl is ok.
just kill the timer again...killtimer & timerexists are your friends :D
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

GodOfSuicide wrote:
CrazyCat wrote:Using the recursive timer is quite dangerous: when you rehash your eggdrop (so, usually when you test the tcl), you'll enable a lot of timers :)
So, think to restart the eggdrop when your tcl is ok.
just kill the timer again...killtimer & timerexists are your friends :D
Easier and more practical to set a variable upon starting the timer for the first time, and checking if that variable exists or not before starting a timer.
Locked