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 

[SOLVED] A little question

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


Joined: 20 May 2007
Posts: 60
Location: Brasov, Romania

PostPosted: Thu Oct 11, 2007 8:56 am    Post subject: [SOLVED] A little question Reply with quote

Hello guys, I have a little question about "bind time" module:

the type for this command is:
Quote:
bind time - "minutes hour days months" ( they are exactly two characters)


So this is my question:

How can I use this setting to do every 20 minutes a proc ?

This way ?

Code:
bind time - "20 * * *"



Regards,
Riddler
_________________
I am a man of few words, but many riddles


Last edited by Riddler on Sat Nov 28, 2009 8:09 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Oct 11, 2007 9:02 am    Post subject: Reply with quote

Not quite, once every minute, a string is generated such as "minute hour day month year" of the current timestamp. This is then matched against any and all time-bindings.

"*0 * * * *" would match whenever the minutes are 00, 10, 20, 30, 40, or 50.
"*0 *" would match whenever the last digit of any of the "fields" except year is zero.

Best option to trigger every 20 minutes, I suppose, would be something like this:
Code:
bind time - "00 *" yourproc
bind time - "20 *" yourproc
bind time - "40 *" yourproc

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


Joined: 20 May 2007
Posts: 60
Location: Brasov, Romania

PostPosted: Thu Oct 11, 2007 10:04 am    Post subject: Reply with quote

Ok, so if this is the code, I`ll try it out and post a reply with the results. Very Happy Cool

Works Great, thanks nml Very Happy
_________________
I am a man of few words, but many riddles
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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