Show last authors
1 {{info title="New"}}
2 See [[Announcement - hcron v1.5 Released>>doc:.Announcements.Announcement - hcron v1\.5 Released.WebHome]].
3
4 New "hcron doc". See [[Generating Event Tree Documentation>>doc:.Documentation.How To.Generating Event Tree Documentation.WebHome]] for an example.
5 {{/info}}
6
7 {{toc-local/}}
8
9 = What is hcron? =
10
11 hcron is a periodic command scheduler along the lines of the ubiquitous cron–but with  unique features.
12
13 hcron scales easily from a handful of events to many thousands:
14
15 {{info}}
16 At Environment Canada, hcron is in 24/7 operational use with over 300 users, over 3000 event definitions, and more than 130000 events scheduled each day.
17 {{/info}}
18
19 = What Sets hcron Apart? =
20
21 Many features are unique to hcron:
22
23 * events are named and organized hierarchically
24 * events are defined individually (by file)
25 * key=value based event definition
26 * events are composable (include directive)
27 * template events (template_event field)
28 * event chaining of one or more events (next_event and failover_event fields)
29 * powerful and concise variable manipulation
30 * events do not get clobbered during system reinstalls
31 * network-oriented rather than host-oriented
32 * event tree document generation tool (see [[doc:Projects.HCRON.Documentation.How To.Generating Event Tree Documentation.WebHome]])
33 * on-demand activation of existing events
34
35 = Comparing cron/crontab to hcron =
36
37 crontab entry:
38
39 {{noformat}}
40 # hello_dolly
41 0 11,21 * 2-12/2 * ssh exechost.abc.xyz 'echo "hello dolly" > /tmp/hello_dolly'; mail -s done Mister.Big@mailhost.abc.xyz
42 {{/noformat}}
43
44 hcron event file (called hello_dolly):
45
46 {{noformat}}
47 as_user=
48 host=exechost.abc.xyz
49 command=echo "hello dolly" > /tmp/hello_dolly
50 notify_email=Mister.Big@mailhost.abc.xyz
51 notify_message=done
52 when_month=2-12/2
53 when_day=*
54 when_hour=11,21
55 when_minute=0
56 when_dow=2
57 {{/noformat}}
58
59 Using hcron means never needing to check the crontab man page to remember the field order. But there is more to hcron than a key=value approach.
60
61 See the [[doc:Projects.HCRON.Documentation.WebHome]] for more.

Contact

About

Name

hcron - Periodic Command Scheduler

Version

1.5

Requirements

Python 3 (and 2.7), Linux/UNIX

License

GPL-2

Links

Repository