Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768115
D126.id303.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
595 B
Referenced Files
None
Subscribers
None
D126.id303.diff
View Options
diff --git a/Wearg/Time.tcl b/Wearg/Time.tcl
new file mode 100644
--- /dev/null
+++ b/Wearg/Time.tcl
@@ -0,0 +1,21 @@
+#bind cron - "* * * * *" cron:minute
+bind cron - "?2 * * * *" cron:often
+bind cron - "?7 * * * *" cron:often
+#bind cron - "0 * * * *" cron:hourly
+#bind cron - "0 4 * * *" cron:daily
+
+#Every 5 minutes
+proc cron:often {minute hour day month weekday} {
+ #Reconnects to broker
+ if {[mq connected]} {
+ mq disconnect
+ }
+}
+
+#Every hour
+proc cron:hourly {minute hour day month weekday} {
+}
+
+#Every day, at 4am
+proc cron:daily {minute hour day month weekday} {
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 06:35 (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259614
Default Alt Text
D126.id303.diff (595 B)
Attached To
Mode
D126: Cron binds for Wearg
Attached
Detach File
Event Timeline
Log In to Comment