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 

bind times

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
NewzUK
Master


Joined: 18 Nov 2002
Posts: 200
Location: Auckland, New Zealand

PostPosted: Thu Aug 25, 2005 5:25 am    Post subject: bind times Reply with quote

Hi there

Is there a shorter way to make this timer run at 00, 15, 30 & 45 past the hour than this:

bind time - "00 * * * *"
bind time - "15 * * * *"
bind time - "30 * * * *"
bind time - "45 * * * *"

Thanks in advance...
_________________
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 25, 2005 5:36 am    Post subject: Reply with quote

Code:

bind time - * foo
proc foo {m h d mo y} {
   if {$m} {set m [string trimleft $m 0]}
   if {$m % 15 == 0} {
   # your stuff here
   }
}
Back to top
View user's profile Send private message Visit poster's website
NewzUK
Master


Joined: 18 Nov 2002
Posts: 200
Location: Auckland, New Zealand

PostPosted: Thu Aug 25, 2005 6:29 am    Post subject: Reply with quote

thanks demond - will give that a go...
_________________
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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