#!/usr/bin/perl -w

# Aufruf: fhem_notify <ziel-host> <user-auf-ziel-host> <meldung>

$host    = shift || die "No host!?\n";
$user    = shift || die "No user!?\n";
$message = shift || die "No message!?\n";

# SSH erfolgt per user "fhem"!

system("timeout 10 ssh -y $host \"/usr/sl/fhem_notify_local $user '$message'\"");
