From 4de4662618eb42abcd9f008ac05711fae6c920ec Mon Sep 17 00:00:00 2001 From: "Difrex(Denis Zheleztsov)" Date: Sun, 10 Aug 2014 21:29:51 +0400 Subject: [PATCH] notify-send --- II/Get.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/II/Get.pm b/II/Get.pm index 21181bd..539e749 100644 --- a/II/Get.pm +++ b/II/Get.pm @@ -145,6 +145,10 @@ sub get_echo { # Commit transaction $db->commit(); print localtime() . ": messages writed to DB!\n"; + + # Notify + my @notify_cmd = ('notify-send', 'Сеть ii', 'Есть новые сообщения'); + system(@notify_cmd) == 0 or warn "Cannot send notify: $!\n"; } return $msgs; }