From 5a9621ceeb71f88c2ca7bd8a5ea39198353ceab9 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 31 Jul 2008 16:16:11 +0000 Subject: [PATCH] make grace period a command line parameter git-svn-id: svn://svn.open-ils.org/ILS/trunk@10220 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/support-scripts/fine_generator.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }; -- 2.43.2