From 611b247ed6f49c734327034d067b06975c38a458 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 13 May 2010 12:15:23 +0000 Subject: [PATCH] fix runcmd so that the default is to redirect stderr to stdout for processing git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 34135b062..e15e1c8fa 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -879,11 +879,9 @@ sub runcmd my ($class, $cmd, $exitcode, $refoutput) = @_; $::RUNCMD_RC = 0; - if (defined($xCAT::Utils::NO_STDERR_REDIRECT) && !$xCAT::Utils::NO_STDERR_REDIRECT) - { - if (!($cmd =~ /2>&1$/)) { $cmd .= ' 2>&1'; } + # redirect stderr to stdout + if (!($cmd =~ /2>&1$/)) { $cmd .= ' 2>&1'; } - } if ($::VERBOSE) {