mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-06 00:26:35 +00:00
$sysCmd $mac
changed to qx ("$sysCmd $mac");
git-svn-id: https://svn.fhem.de/fhem/trunk@4923 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2bcf2b5e32
commit
f086b20dd1
@ -211,7 +211,7 @@ sub wol_by_ew($$) {
|
|||||||
|
|
||||||
my $sysCmd = AttrVal($hash->{NAME}, "sysCmd", "/usr/bin/ether-wake");
|
my $sysCmd = AttrVal($hash->{NAME}, "sysCmd", "/usr/bin/ether-wake");
|
||||||
if (-e $sysCmd) {
|
if (-e $sysCmd) {
|
||||||
my $response = `$sysCmd $mac`;
|
qx ("$sysCmd $mac");
|
||||||
} else {
|
} else {
|
||||||
Log3 $hash, 1, "[$hash->{NAME}] system command '$sysCmd' not found";
|
Log3 $hash, 1, "[$hash->{NAME}] system command '$sysCmd' not found";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user