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; }