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

(-)a/misc/cronjobs/membership_expiry.pl (-19 / +2 lines)
Lines 24-50 membership_expiry.pl - cron script to put membership expiry reminders into the m Link Here
24
24
25
=head1 SYNOPSIS
25
=head1 SYNOPSIS
26
26
27
./membership_expiry.pl -c
27
./membership_expiry.pl -c [-v] [-n] [-branch CODE] [-before DAYS] [-after DAYS] [-where COND] [-renew] [-letter X] [-letter-renew Y] [-active|-inactive]
28
28
29
or, in crontab:
29
or, in crontab:
30
30
31
0 1 * * * membership_expiry.pl -c
31
0 1 * * * membership_expiry.pl -c [other options you need as mentioned above]
32
33
Options:
34
   --help                   brief help message
35
   --man                    full documentation
36
   --where <conditions>     where clause to add to the query
37
   -v -verbose              verbose mode
38
   -n --nomail              if supplied, messages will be output to STDOUT and no email or sms will be sent
39
   -c --confirm             commit changes to db, no action will be taken unless this switch is included
40
   -b --branch <branchname> only deal with patrons from this library/branch
41
   --before=X               include patrons expiring a number of days BEFORE the date set by the preference
42
   --after=X                include patrons expiring a number of days AFTER  the date set by the preference
43
   -l --letter <lettercode> use a specific membership expiry notice
44
   --letter_renew <code>    use a specific membership renewal notice (needs --renew too)
45
   --active=X               only deal with active patrons (active within X months)
46
   --inactive=X             only deal with inactive patrons (inactive within X months)
47
   --renew                  renew patrons and send notice (instead of expiry notice only)
48
32
49
=head1 DESCRIPTION
33
=head1 DESCRIPTION
50
34
51
- 

Return to bug 28688