5 use Try::Tiny qw( catch try );
8 use C4::Log qw( cronlogaction );
11 use Koha::Script -cron;
13 my $command_line_options = join(" ",@ARGV);
14 cronlogaction({ info => $command_line_options });
16 my $logger = Koha::Logger->get();
17 if ( C4::Context->config("enable_plugins") ) {
18 my @plugins = Koha::Plugins->new->GetPlugins(
20 method => 'cronjob_nightly',
24 foreach my $plugin (@plugins) {
26 $plugin->cronjob_nightly();
35 cronlogaction({ action => 'End', info => "COMPLETED" });
39 plugins_nightly.pl - Run nightly tasks specified by plugins
47 Martin Renvoize <martin.renvoize@ptfs-europe.com>
51 This file is part of Koha.
53 Koha is free software; you can redistribute it and/or modify it
54 under the terms of the GNU General Public License as published by
55 the Free Software Foundation; either version 3 of the License, or
56 (at your option) any later version.
58 Koha is distributed in the hope that it will be useful, but
59 WITHOUT ANY WARRANTY; without even the implied warranty of
60 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
61 GNU General Public License for more details.
63 You should have received a copy of the GNU General Public License
64 along with Koha; if not, see <http://www.gnu.org/licenses>.