{
if (!defined(@get_sensors_cache)) {
local @rv;
- open(SENS, "sensors |");
+ open(SENS, "sensors 2>/dev/null |");
while(<SENS>) {
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
local $info = &backquote_command("openssl x509 -in ".quotemeta($certfile).
" -inform PEM -text -noout -enddate ".
" </dev/null 2>&1");
-print STDERR "info=$info\n";
# Check dates
&foreign_require("mailboxes", "mailboxes-lib.pl");
$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));