| View previous topic :: View next topic |
| Author |
Message |
NewzUK Master
Joined: 18 Nov 2002 Posts: 200 Location: Auckland, New Zealand
|
Posted: Thu Aug 25, 2005 5:25 am Post subject: bind times |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Aug 25, 2005 5:36 am Post subject: |
|
|
| 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 |
|
 |
NewzUK Master
Joined: 18 Nov 2002 Posts: 200 Location: Auckland, New Zealand
|
Posted: Thu Aug 25, 2005 6:29 am Post subject: |
|
|
thanks demond - will give that a go... _________________ #Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org |
|
| Back to top |
|
 |
|