This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

bind times

Old posts that have not been replied to for several years.
Locked
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

bind times

Post by NewzUK »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

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
   }
}
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

thanks demond - will give that a go...
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
Locked