From: Jason Etheridge Date: Tue, 10 May 2016 15:38:05 +0000 (-0400) Subject: close the OUTFILE handle X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2101c02043f60fb3b33c29d22b6a8acabdc2dd95;p=working%2FEvergreen.git close the OUTFILE handle in action_trigger_aggregator.pl Otherwise you may try to read from the file when its contents haven't yet been flushed to disk, ultimately resulting in truncated files on the remote system. Thanks to Steve for troubleshooting! Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/support-scripts/action_trigger_aggregator.pl b/Open-ILS/src/support-scripts/action_trigger_aggregator.pl index 9da5f6fd9c..a126db0218 100755 --- a/Open-ILS/src/support-scripts/action_trigger_aggregator.pl +++ b/Open-ILS/src/support-scripts/action_trigger_aggregator.pl @@ -194,6 +194,7 @@ while (my $resp = $req->recv(timeout => 3600)) { my $content = $resp->content or next; print OUTFILE $content->{data}; } +close OUTFILE; if ($remote_acct) { # send the file to the remote account