egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

proc run schedule

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Dec 16, 2008 3:16 am    Post subject: proc run schedule Reply with quote

bind time {40 * * * *} myproc

is that correct?
i think no Razz
how i can do that to run my command every 40 minites?
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Tue Dec 16, 2008 8:07 am    Post subject: Reply with quote

try:
Code:
bind time - "40 * * * *" my_proc


for test change 40 to 2 or smth ;p
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Dec 16, 2008 3:20 pm    Post subject: Reply with quote

Actually, the use of "" or {} does not matter in this case, as there is nothing to be substituted in the preprocessing phase.

What is to be kept in mind, however, is that the mask is matched against "minute hour day month year" every minute. If the mask matches, the associated command is evaluated. In your case, it means the command will be triggered once every hour, twenty minutes to the hour (01:40, 02:40, 03:40 ... 23:40).

To trigger something every 40 minutes, your best option is most likely to use a recursive 40min timer.. Most basic version is shown below:
Code:
proc someproc {} {
 ...

 #Now a recursive call
 timer 40 [list someproc]
}

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Dec 16, 2008 5:42 pm    Post subject: Reply with quote

eh.. :s easy answer thnx stupid question :S run one timer 40 and inside again timer.. ix.


thanx Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber