View | Details | Raw Unified | Return to bug 21698
Collapse All | Expand All

(-)a/misc/cronjobs/holds/cancel_unfilled_holds.pl (-20 / +17 lines)
Lines 39-83 cronlogaction(); Link Here
39
39
40
=head1 NAME
40
=head1 NAME
41
41
42
cancel_unfilled_holds.pl
42
cancel_unfilled_holds.pl - script to delete unfilled holds after a given
43
number of days.
43
44
44
=head1 SYNOPSIS
45
=head1 SYNOPSIS
45
46
46
cancel_unfilled_holds.pl
47
 cancel_unfilled_holds.pl [--days][--library][--holidays][--confirm][--verbose]
47
    [-days][-library][-holidays]
48
48
49
 Options:
49
=head1 OPTIONS
50
    -help                       brief help
51
    -days                       cancel holds placed this many days ago which have not been filled
52
    -library                    [repeatable] limit to specified branch(es)
53
    -holidays                   skip holidays when calculating days waiting
54
    -v                          verbose
55
56
head1 OPTIONS
57
50
58
=over 8
51
=over 8
59
52
60
=item B<-help>
53
=item B<--help | -h>
61
54
62
Print brief help and exit.
55
Print brief help and exit.
63
56
64
=item B<-man>
57
=item B<--days>
65
66
Print full documentation and exit.
67
68
=item B<-days>
69
58
70
Specify the number of days waiting since a hold that remains unfilled was placed.
59
Specify the number of days waiting since a hold that remains unfilled was placed.
71
E.g. a value of 730 would cancel holds placed 2 years ago or more that have never been filled
60
E.g. a value of 730 would cancel holds placed 2 years ago or more that have never been filled
72
61
73
=item B<-library>
62
=item B<--library>
74
63
75
Repeatable option to specify which branchcode(s) to cancel holds for.
64
Repeatable option to specify which branchcode(s) to cancel holds for.
76
65
77
=item B<-holidays>
66
=item B<--holidays>
78
67
79
This switch specifies whether to count holidays as days waiting. Default is no.
68
This switch specifies whether to count holidays as days waiting. Default is no.
80
69
70
=item B<--confirm>
71
72
Without this option, the script will run in test mode, and only report what it
73
would have done if it were not running in test mode.
74
75
=item B<--verbose | -v>
76
77
More verbose output.
78
81
=back
79
=back
82
80
83
=cut
81
=cut
84
- 

Return to bug 21698