Test capture function

master
Heuzef 5 years ago
parent 9609b2d1fc
commit 5ade204725
  1. 4
      Check.pm

@ -22,6 +22,7 @@ package BackupPC::CGI::Check;
use strict; use strict;
use BackupPC::CGI::Lib qw(:all); use BackupPC::CGI::Lib qw(:all);
use IPC::System::Simple qw(system capture);
sub action sub action
{ {
@ -129,7 +130,8 @@ sub action
($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../; ($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../;
$shortErr = " ($shortErr)"; $shortErr = " ($shortErr)";
} }
my $sizeConsistency = `check_size_consistency.pl --host=localhost`;
my $sizeConsistency = capture($^X, "check_size_consistency.pl", "--host=localhost");
$str = <<EOF; $str = <<EOF;
<tr$reasonHilite><td class="border">${HostLink($host)}</td> <tr$reasonHilite><td class="border">${HostLink($host)}</td>

Loading…
Cancel
Save