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"
15 # Not just using $6 for body - because body might contain a character
18 len_head =
length($
1 FS $
2 FS $
3 FS $
4 FS $
5 FS)
19 len_body = len_line
- len_head
20 body =
substr($
0, len_head
+ 1, len_body
)
22 sep = body ?
"\n" : ""
23 body = body sep
"--" src
25 sub("hi" , "critical", urgency
)
26 sub("med", "normal" , urgency
)
30 "DISPLAY=%s notify-send -u %s %s \" %s\"",
31 Display
, urgency
, subject
, body \