diff --git a/Check.pm b/Check.pm index 807c059..8e08043 100644 --- a/Check.pm +++ b/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 = <${HostLink($host)}