From a4e52ce8ae843b561af0cd4cfe3d52b6f91dc91f Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 10 May 2007 17:44:30 +0000 Subject: [PATCH] Fixed execute_command bug --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index d4b66f2a2..44d78c7e6 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -5675,7 +5675,7 @@ local $cmd = &translate_command($cmd); # Use ` operator where possible if (!$stdin && ref($stdout) && !$stderr) { $cmd = "($cmd)" if ($gconfig{'os_type'} ne 'windows'); - $$stdout = `$cmd >$null_file`; + $$stdout = `$cmd 2>$null_file`; return $?; } elsif (!$stdin && ref($stdout) && $stdout eq $stderr) {