my $notifier = "/usr/local/sbin/notify-messenger";
if ( -x $notifier) {
$hostname = Sys::Hostname::hostname();
- open my $pipe,"|",$notifier;
+ open my $pipe,"|$notifier";
print $pipe "$hostname: $msg";
close $pipe;
}
# sysadmin about backup status
# This version sends message to default matrix room configured in root's
# ~/.config/matrix-commander/credentials.json
+# and expected that matrix-commander store is in th ${HOME}/store of
+# invoking user(root)
# You can use XMPP or some proprietary messenger such as telegram
# instead
-matrix-commander -m -
+matrix-commander -m - -s ${HOME}/store