notify-send

This commit is contained in:
Difrex(Denis Zheleztsov) 2014-08-10 21:29:51 +04:00
parent a257a159df
commit 4de4662618

View File

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