use Modern::Perl;
use Getopt::Long qw( GetOptions );
use Pod::Usage qw( pod2usage );
-BEGIN {
- # find Koha's Perl modules
- # test carefully before changing this
- use FindBin ();
- eval { require "$FindBin::Bin/../kohalib.pl" };
-}
use Koha::Script -cron;
use C4::Context;
my ( $branch, $letter_type );
my @where;
+my $command_line_options = join(" ",@ARGV);
+
GetOptions(
'help|?' => \$help,
'man' => \$man,
pod2usage( -verbose => 2 ) if $man;
pod2usage(1) if $help || !$confirm;
-cronlogaction();
+cronlogaction({ info => $command_line_options });
my $expdays = C4::Context->preference('MembershipExpiryDaysNotice');
if( !$expdays ) {
});
}
}
+
+cronlogaction({ action => 'End', info => "COMPLETED" });