From: miker Date: Thu, 31 Jul 2008 16:16:55 +0000 (+0000) Subject: make grace period a command line parameter X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c370bc5488c23546398414be9d4d360221f95bed;p=Evergreen.git make grace period a command line parameter git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10221 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/support-scripts/fine_generator.pl b/Open-ILS/src/support-scripts/fine_generator.pl index 9e04a7820c..d6dc8f138a 100755 --- a/Open-ILS/src/support-scripts/fine_generator.pl +++ b/Open-ILS/src/support-scripts/fine_generator.pl @@ -12,6 +12,7 @@ use OpenSRF::System; my $config = shift || die "bootstrap config required\n"; my $lockfile = shift || "/tmp/generate_fines-LOCK"; +my $grace = int(shift()) || 1; if (-e $lockfile) { open(F,$lockfile); @@ -36,7 +37,7 @@ OpenSRF::System->bootstrap_client( config_file => $config ); my $r = OpenSRF::AppSession ->create( 'open-ils.storage' ) - ->request( 'open-ils.storage.action.circulation.overdue.generate_fines' => 1 ); + ->request( 'open-ils.storage.action.circulation.overdue.generate_fines' => $grace ); while (!$r->complete) { $r->recv };