2 # Set the correct value as any other AWK variable:
4 # khatus_actuate_alert_to_notify_send -v Display="$CORRECT_DISPLAY"
6 Display = Display ? Display
: ":0"
14 # Not just using $5 for body - because body might contain a character
17 len_head =
length($
1 FS $
2 FS $
3 FS $
4 FS $
5 FS)
18 len_body = len_line
- len_head
19 body =
substr($
0, len_head
+ 1, len_body
)
22 sub("hi" , "critical", urgency
)
23 sub("med", "normal" , urgency
)
27 "DISPLAY=%s notify-send -u %s %s \" %s\"",
28 Display
, urgency
, subject
, body \