notify-send
This commit is contained in:
parent
a257a159df
commit
4de4662618
@ -145,6 +145,10 @@ sub get_echo {
|
|||||||
# Commit transaction
|
# Commit transaction
|
||||||
$db->commit();
|
$db->commit();
|
||||||
print localtime() . ": messages writed to DB!\n";
|
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;
|
return $msgs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user