]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/support-scripts/hold_targeter.pl
perl based, so they are safer than srfsh and his puny 1M buffer ;)
[working/Evergreen.git] / Open-ILS / src / support-scripts / hold_targeter.pl
1 #!/usr/bin/perl
2 # ---------------------------------------------------------------------
3 # Generic databse object dumper.
4 # ./object_dumper.pl <bootstrap_config> <type>, <type>, ...
5 # ./object_dumper.pl /openils/conf/bootstrap.conf permission.grp_tree
6 # ---------------------------------------------------------------------
7
8 use strict; 
9 use warnings;
10 use JSON;
11 use OpenSRF::System;
12
13 my $config = shift || die "bootstrap config required\n";
14
15 OpenSRF::System->bootstrap_client( config_file => $config );
16
17 my $r = OpenSRF::AppSession
18                 ->create( 'open-ils.storage' )
19                 ->request( 'open-ils.storage.action.hold_request.copy_targeter' => '24h' );
20
21 while (!$r->complete) { $r->recv };
22