From 8f241685b9bfe98101ec271d4de5fcfab7a724f2 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 12 Oct 2012 14:29:59 +0800 Subject: [PATCH] Bug 8910 - silent warnings triggered in about.pl In order to detect the apache version, there are multiple commands used. These may not all exist, which triggers error log entries. By simply adding " 2> /dev/null", the errors are no longer generated. Signed-off-by: Kyle M Hall Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack Signed-off-by: Liz Rea - Catalyst --- about.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/about.pl b/about.pl index 9295b33b46..e67a3fc42c 100755 --- a/about.pl +++ b/about.pl @@ -55,8 +55,8 @@ if ($^O ne 'VMS') { } my $perlVersion = $]; my $mysqlVersion = `mysql -V`; -my $apacheVersion = `httpd -v`; -$apacheVersion = `httpd2 -v` unless $apacheVersion; +my $apacheVersion = `httpd -v 2> /dev/null`; +$apacheVersion = `httpd2 -v 2> /dev/null` unless $apacheVersion; $apacheVersion = (`/usr/sbin/apache2 -V`)[0] unless $apacheVersion; my $zebraVersion = `zebraidx -V`; -- 2.39.5