From f3ab3516338003ff2cdef10c856fcd083ac110e6 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 4 Jul 2008 00:58:27 +0000 Subject: [PATCH] Supress error output: --- status/sensors-monitor.pl | 2 +- status/sslcert-monitor.pl | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/status/sensors-monitor.pl b/status/sensors-monitor.pl index 43478e1e8..2c7282c89 100644 --- a/status/sensors-monitor.pl +++ b/status/sensors-monitor.pl @@ -65,7 +65,7 @@ sub get_sensors_values { if (!defined(@get_sensors_cache)) { local @rv; - open(SENS, "sensors |"); + open(SENS, "sensors 2>/dev/null |"); while() { if (/^([^:]+):\s+([0-9\.\+\-]+)\s*(\S+)\s+\(min\s+=\s+([0-9\.\+\-]+)\s*(\S+),\s+max\s+=\s+([0-9\.\+\-]+)/) { # Value with min and max diff --git a/status/sslcert-monitor.pl b/status/sslcert-monitor.pl index 6002ee4cc..b265c9117 100644 --- a/status/sslcert-monitor.pl +++ b/status/sslcert-monitor.pl @@ -43,7 +43,6 @@ else { local $info = &backquote_command("openssl x509 -in ".quotemeta($certfile). " -inform PEM -text -noout -enddate ". " &1"); -print STDERR "info=$info\n"; # Check dates &foreign_require("mailboxes", "mailboxes-lib.pl"); @@ -55,7 +54,6 @@ if ($info =~ /Not\s+After\s*:\s*(.*)/i) { $end = &mailboxes::parse_mail_date("$1"); } local $now = time(); -print STDERR "start=$start end=$end now=$now\n"; if ($start && $now < $start) { # Too new?! $desc = &text('sslcert_estart', &make_date($start));