From 93039b93394ed6252b250e4731b0c7e1aacbf33b Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 20 Aug 2016 09:41:27 +0000 Subject: [PATCH] fhem.pl: fix setting attr global commandref (Forum #39854) git-svn-id: https://svn.fhem.de/fhem/trunk@12006 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index f978cf44f..3fff1a01b 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -2455,10 +2455,12 @@ GlobalAttr($$$$) } elsif($name eq "commandref" && $init_done) { my $root = $attr{global}{modpath}; + my $out = ""; + $out = ">> $currlogfile 2>&1" if($currlogfile ne "-" && $^O ne "MSWin32"); if($val eq "full") { - return `$^X $root/contrib/commandref_join.pl -noWarnings`; + system("$^X $root/contrib/commandref_join.pl -noWarnings $out") } else { - return `$^X $root/contrib/commandref_modular.pl`; + system("$^X $root/contrib/commandref_modular.pl $out"); } }