| View previous topic :: View next topic |
| Author |
Message |
Riddler Halfop
Joined: 20 May 2007 Posts: 60 Location: Brasov, Romania
|
Posted: Thu Oct 11, 2007 8:56 am Post subject: [SOLVED] A little question |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Oct 11, 2007 9:02 am Post subject: |
|
|
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 |
|
 |
Riddler Halfop
Joined: 20 May 2007 Posts: 60 Location: Brasov, Romania
|
Posted: Thu Oct 11, 2007 10:04 am Post subject: |
|
|
Ok, so if this is the code, I`ll try it out and post a reply with the results.
Works Great, thanks nml  _________________ I am a man of few words, but many riddles |
|
| Back to top |
|
 |
|
|
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
|
|