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

Loading…
Cancel
Save