2 FS1 =
"|" # Fiels separator, level 1 (record to fields)
3 FS2 =
":" # Fiels separator, level 2 (field to subfields
9 # -----------------------------------------------------------------------------
11 # -----------------------------------------------------------------------------
12 function msg_out_alert_low
(subject
, body
) {
13 msg_out_alert
("low", subject
, body
)
16 function msg_out_alert_med
(subject
, body
) {
17 msg_out_alert
("med", subject
, body
)
20 function msg_out_alert_hi
(subject
, body
) {
21 msg_out_alert
("hi", subject
, body
)
24 function msg_out_alert
(priority
, subject
, body
) {
25 # priority : "low" | "med" | "hi"
26 # subject : string without spaces
28 print(Node
, Module
, "alert", priority
, subject
, body
)
31 # -----------------------------------------------------------------------------
33 # -----------------------------------------------------------------------------
34 function msg_out_log_info
(location
, msg
) {
35 msg_out_log
("info", location
, msg
)
38 function msg_out_log_error
(location
, msg
) {
39 msg_out_log
("error", location
, msg
)
42 function msg_out_log
(level
, location
, msg
) {
43 print(Node
, Module
, "log", location
, level
, msg
) > "/dev/stderr"
46 # -----------------------------------------------------------------------------
48 # -----------------------------------------------------------------------------
49 function msg_out_status_bar
(bar
) {
50 print(Node
, Module
, "status_bar", bar
)
53 # -----------------------------------------------------------------------------
55 # -----------------------------------------------------------------------------
56 function msg_out_data
(key
, val
) {
57 print(Node
, Module
, "data", key
, val
)
This page took 0.076229 seconds and 4 git commands to generate.