27b831d50c2fc80c0ecbd962e0ea33231e5fd939
[kohadocs.git] / en / source / 16_cron_jobs.rst
1 .. include:: images.rst
2
3
4 Cron Jobs
5 =========
6
7 A cron job is a Linux command for scheduling a command or script on your
8 server to complete repetitive tasks automatically. Scripts executed as a
9 cron job are typically used to modify files or databases; however, they
10 can perform other tasks that do not modify data on the server, like
11 sending out email notifications. Koha has many cron jobs in place that
12 you can enable (search engine indexing, overdue notice generation, data
13 cleanup and more), this chapter will explain those for you.
14
15 Crontab example
16 -------------------------
17
18 An example of a Koha crontab can be found in misc/cronjobs/crontab.example
19
20 The example includes sample boilerplate cronjob entries for the most
21 commonly-used cronjobs.
22
23 .. _cron-jobs-subchapter-label:
24
25 Cron Jobs
26 -------------------------
27
28 The locations below assume a dev install which puts the crons in misc/,
29 if you have a standard install you may want to look in bin/ for these
30 files if you cannot find them in misc/
31
32 .. _daily-backup-label:
33
34 Backup
35 ~~~~~~~~~~~~~~~~~~~~~~~~
36
37 Daily Backup
38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39
40 Script path: misc/cronjobs/backup.sh
41
42 Does: Creates a daily backup of the Koha database.
43
44 Frequency suggestion: daily
45
46 .. _search-label:
47
48 Search
49 ~~~~~~~~~~~~~~~~~~~~~~~~
50
51 .. _sitemap-label:
52
53 Sitemap
54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55
56 Script path: misc/cronjobs/sitemap.pl
57
58 Does: Processes all biblio records from a Koha instance and generates sitemap files
59 complying with the protocol as described on http://sitemaps.org. The goal of this
60 script is to be able to provide to search engines direct access to biblio records.
61 It avoids leaving search engines browsing Koha's OPAC which would generate a lot
62 of site traffic and server workload.
63
64     **Note**
65     A file named sitemapindex.xml is generated. It contains references to multiple
66     sitemap files. Each file contains at most 50,000 URLs and it named
67     sitemapXXXX.xml.
68     
69     The files must be stored on the Koha OPAC's root directory. In the same directory
70     a robots.txt file with the following contents is required:
71     
72     
73     ``Sitemap: sitemapindex.xml
74     User-agent: *
75     Disallow: /cgi-bin/``
76
77 .. _rebuild-index-label:
78
79 Rebuild Index
80 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81
82 Script path: misc/migration\_tools/rebuild\_zebra.pl
83
84 Does: Updates Zebra indexes with recently changed data.
85
86 Required by: Zebra
87
88 Frequency suggestion: every x minutes, (between 5-15 minutes) depending
89 on performance needs
90
91 .. _circulation-label:
92
93 Circulation
94 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
95
96 .. _holds-queue-label:
97
98 Holds Queue
99 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100
101 Script path: misc/cronjobs/holds/build\_holds\_queue.pl
102
103 Does: Updates holds queue report
104
105 Required by: :ref:`Holds Queue Report <holds-queue-label>`
106
107 Frequency suggestion: every 1-4 hours
108
109 Description:
110
111 -  A script that should be run periodically if your library system
112    allows borrowers to place on-shelf holds. This script decides which
113    library should be responsible for fulfilling a given hold request.
114
115    It's behavior is controlled by the system preferences
116    :ref:`StaticHoldsQueueWeight <staticholdsqueueweight,-holdsqueueskipclosed-&-randomizeholdsqueueweight-label>` and
117    :ref:`RandomizeHoldsQueueWeight <staticholdsqueueweight,-holdsqueueskipclosed-&-randomizeholdsqueueweight-label>`.
118
119    If you do not want all of your libraries to participate in the
120    on-shelf holds fulfillment process, you should list the the libraries
121    that \*do\* participate in the process here by inputting all the
122    participating library's branchcodes, separated by commas ( e.g.
123    "MPL,CPL,SPL,BML" etc. ).
124
125    By default, the holds queue will be generated such that the system
126    will first attempt to hold fulfillment using items already at the
127    pickup library if possible. If there are no items available at the
128    pickup library to fill a hold, build\_holds\_queue.pl will then use
129    the list of libraries defined in StaticHoldsQueueWeight. If
130    RandomizeHoldsQueueWeight is disabled ( which it is by default ), the
131    script will assign fulfillment requests in the order the branches are
132    placed in the StaticHoldsQueueWeight system preference.
133
134    For example, if your system has three libraries, of varying sizes (
135    small, medium and large ) and you want the burden of holds
136    fulfillment to be on larger libraries before smaller libraries, you
137    would want StaticHoldsQueueWeight to look something like
138    "LRG,MED,SML".
139
140    If you want the burden of holds fulfillment to be spread out equally
141    throughout your library system, simply enable
142    RandomizeHoldsQueueWeight. When this system preference is enabled,
143    the order in which libraries will be requested to fulfill an on-shelf
144    hold will be randomized each time the list is regenerated.
145
146    Leaving StaticHoldsQueueWeight empty is contraindicated at this time.
147    Doing so will cause the build\_holds\_queue script to ignore
148    RandomizeHoldsQueueWeight, causing the script to request hold
149    fulfillment not randomly, but by alphabetical order.
150
151 .. _expired-holds-label:
152
153 Expired Holds
154 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
155
156 Script path: misc/cronjobs/holds/cancel\_expired\_holds.pl
157
158 Does: By default, this cron job will only automatically cancel holds
159 where the user has set an expiration date. If the library is using the
160 :ref:`ExpireReservesMaxPickUpDelay` and
161 :ref:`ExpireReservesMaxPickUpDelayCharge`
162 preferences then this script will also cancel holds that have been
163 sitting on the hold shelf for too long and will (if the library does)
164 charge the patron for not picking up the hold.
165
166 Frequency suggestion: daily
167
168 .. _unsuspend-holds-label:
169
170 Unsuspend Holds
171 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172
173 Script path: misc/cronjobs/holds/auto\_unsuspend\_holds.pl
174
175 Does: This script checks to find holds that should no longer be
176 suspended and removes the suspension if the
177 :ref:`AutoResumeSuspendedHolds` preference is
178 set to 'allow'. This puts the patron back in to the queue where they
179 were when the hold was suspended.
180
181 Frequency suggestion: daily
182
183 .. _fines-label:
184
185 Fines
186 ^^^^^^^^^^^^^^^^^^^^^^^^^
187
188 Script path: misc/cronjobs/fines.pl
189
190 Does: Calculates and posts fines to patron accounts.
191
192 Required by: :ref:`finesMode` system preference
193
194 Frequency suggestion: nightly
195
196 .. _staticfines-label:
197
198 Static Fines
199 ^^^^^^^^^^^^^^^^^^^^^^^^^
200
201 Script path: misc/cronjobs/staticfines.pl
202
203 Does: this script calculates and charges overdue fines to patron accounts
204
205     **Note**
206     If the Koha System Preference 'finesMode' is set to 'production', the fines
207     are charged to the patron accounts. If set to 'test', the fines are calculated but not applied.
208     
209     **Note**
210     Fines won't be applied on a holiday.
211
212 .. _long-overdues-label:
213
214 Long Overdues
215 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
216
217 Script path: misc/cronjobs/longoverdue.pl
218
219 Does: allows one to specify delays for changing items to different lost
220 statuses, and optionally charge for them using the replacement price
221 listed on the item record.
222
223 Frequency suggestion: nightly
224
225     **Note**
226
227     Staff can control some of the parameters for the longoverdue cron
228     job with the
229     :ref:`DefaultLongOverdueLostValue <defaultlongoverduelostvalue-&-defaultlongoverduedays-label>` and
230     :ref:`DefaultLongOverdueChargeValue`
231     preferences.
232
233 .. _track-total-checkouts-label:
234
235 Track Total Checkouts
236 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
237
238 Script path: misc/cronjobs/update\_totalissues.pl
239
240 Does: updates the biblioitems.totalissues field in the database with the
241 latest tally of checkouts based on historical issue statistics.
242
243 Frequency suggestion: nightly
244
245     **Warning**
246
247     If the time on your database server does not match the time on your Koha
248     server you will need to take that into account, and probably use the
249     --since argument instead of the --interval argument for incremental
250     updating.
251
252     **Note**
253
254     This cronjob can be used if there is a performance concern. Otherwise,
255     use the UpdateTotalIssuesOnCirc System Preference.
256
257 .. _generate-patron-file-for-offline-circulation-label:
258
259 Generate Patron File for Offline Circulation
260 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
261
262 Script path: misc/cronjobs/create\_koc\_db.pl
263
264 Does: Generates the borrowers.db file for use with the :ref:`Koha Offline
265 Circulation <offline-circ-tool-for-windows-label>` tool
266
267 Frequency suggestion: weekly
268
269 .. _automatic-renewal-label:
270
271 Automatic renewal
272 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273
274 Script path: misc/cronjobs/automatic\_renewals.pl
275
276 Does: Will automatically renew items if you're allowing automatic
277 renewal with your :ref:`circulation and fine rules <circulation-and-fine-rules-label>`.
278
279 Frequency suggestion: nightly
280
281 .. _patrons-label:
282
283 Patrons
284 ~~~~~~~~~~~~~~~~~~~~~~~~~~
285
286 .. _delete-patrons-label:
287
288 Batch Delete Patrons
289 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
290
291 Script path: misc/cronjobs/delete\_patrons.pl
292
293 Does: Deletes patron records in batch based on date not borrowed since,
294 expired before, last seen, category code, or library branch.
295
296 .. _unverified-registrations-label:
297
298 Unverified Registrations
299 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
300
301 Script path: misc/cronjobs/delete\_expired\_opac\_registrations.pl
302
303 Does: Deletes patron registrations that were submitted via the OPAC but
304 not reviewed by the library within the number of days entered in the
305 :ref:`PatronSelfRegistrationExpireTemporaryAccountsDelay`
306 preference.
307
308 Frequency suggestion: nightly
309
310 .. _unconfirmed-registrations-label:
311
312 Unconfirmed Registrations
313 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
314
315 Script path: misc/cronjobs/delete\_unverified\_opac\_registrations.pl
316
317 Does: Deletes patron self registrations that were submitted via the OPAC
318 but not confirmed via email within 24 hours. This is only necessary if
319 you are requiring patrons to confirm their registrations via email with
320 the
321 :ref:`PatronSelfRegistrationVerifyByEmail`
322 preference.
323
324 Frequency suggestion: hourly
325
326 .. _anonymize-patron-data-label:
327
328 Anonymize Patron Data
329 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
330
331 Script path: misc/cronjobs/batch\_anonymise.pl
332
333 Does: Used to anonymize patron data. This will remove borrowernumbers
334 from circulation history so that the stats are kept, but the patron
335 information is removed for privacy reasons.
336
337 .. _update-child-to-adult-patron-type-label:
338
339 Update Child to Adult Patron Type
340 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
341
342 Script path: misc/cronjobs/j2a.pl
343
344 Does: Convert juvenile/child patrons from juvenile patron category and
345 category code to corresponding adult patron category and category code
346 when they reach the upper age limit defined in the Patron Categories.
347
348 Frequency suggestion: nightly
349
350     **DESCRIPTION**
351     
352     This script is designed to update patrons from juvenile to adult patron
353     types, remove the guarantor, and update their category codes
354     appropriately when they reach the upper age limit defined in the Patron
355     Categories.
356
357     **USAGE EXAMPLES**
358     
359     "juv2adult.pl"
360     
361     "juv2adult.pl" -b=<branchcode> -f=<categorycode> -t=<categorycode> 
362     (Processes a single branch, and updates the patron categories from
363     category to category)
364     
365     "juv2adult.pl" -f=<categorycode> -t=<categorycode> -v -n (Processes all
366     branches, shows all messages, and reports the patrons who would be
367     affected. Takes no action on the database)
368
369 .. _notices-label:
370
371 Notices
372 ~~~~~~~~~~~~~~~~~~~~~~~~~~
373
374 .. _message-queue-label:
375
376 Message Queue
377 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
378
379 Script path: misc/cronjobs/process\_message\_queue.pl
380
381 Does: processes the message queue to send the check out, check in and
382 hold filled emails and SMS message to users and sends outgoing emails to
383 patrons. requires
384 :ref:`EnhancedMessagingPreferences` to be
385 on
386
387 Frequency suggestion: 1-4 hours
388
389     **Important**
390
391     Item due and Advanced due notices are controlled by the
392     :ref:`advance\_notices cron <advanced-notice-label>`.
393
394 .. _advanced-notice-label:
395
396 Advanced Notice
397 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
398
399 Script path: misc/cronjobs/advance\_notices.pl
400
401 Does: prepares "pre-due" notices and "item due" notices for patrons who
402 request them prepares notices for patrons for items just due or coming
403 due soon. requires
404 :ref:`EnhancedMessagingPreferences` to be
405 on
406
407 Frequency suggestion: nightly
408
409     **Note**
410
411     This script does not actually send the notices. It queues them in
412     the :ref:`message queue <message-queue-label>` for later
413
414 .. _overdue-notice-label:
415
416 Overdue Notice
417 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
418
419 Script path: misc/cronjobs/overdue\_notices.pl
420
421 Does: prepares messages to alert patrons of overdue messages (both via
422 email and print)
423
424 Frequency suggestion: nightly
425
426     **Note**
427
428     This script does not actually send the notices. It queues them in
429     the :ref:`message queue <message-queue-label>` for later or generates the
430     HTML for later printing
431
432     **See also**
433     
434     The misc/cronjobs/advance\_notices.pl program allows you to send
435     messages to patrons in advance of their items becoming due, or to alert
436     them of items that have just become due.
437
438 .. _printoverdues-label:
439
440 Print Overdues
441 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
442
443 Script path: misc/cronjobs/printoverdues.sh
444
445 Does: generates PDF files from HTML files in directories and prints them
446
447 .. _print-hold-notices-label:
448
449 Print Hold Notices
450 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
451
452 Script path: misc/cronjobs/gather\_print\_notices.pl
453
454 Does: looks through the message queue for hold notices that didn't go
455 through because the patron didn't have an email address and generates a
456 print notice
457
458 Frequency suggestion: nightly
459
460 .. _talking-tech-label:
461
462 Talking Tech
463 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
464
465 To learn more about setting up this third party product view the
466 `Talking Tech Appendix <#talkingtechappendix>`__.
467
468 .. _sending-notices-file-label:
469
470 Sending Notices File
471 '''''''''''''''''''''''''''''''''''''''''''''''
472
473 Script path: misc/cronjobs/thirdparty/TalkingTech\_itiva\_outbound.pl
474
475 Does: Script to generate Spec C outbound notifications file for Talking
476 Tech i-tiva phone notification system.
477
478 Required by:
479 :ref:`TalkingTechItivaPhoneNotification`
480
481 Frequency suggestion: nightly
482
483 .. _receiving-notices-file-label:
484
485 Receiving Notices File
486 ''''''''''''''''''''''''''''''''''''''''''''''''''''
487
488 Script path: misc/cronjobs/thirdparty/TalkingTech\_itiva\_inbound.pl
489
490 Does: Script to process received Results files for Talking Tech i-tiva
491 phone notification system.
492
493 Required by:
494 :ref:`TalkingTechItivaPhoneNotification`
495
496 Frequency suggestion: nightly
497
498 .. _notify-patrons-of-expiration-label:
499
500 Notify Patrons of Expiration
501 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
502
503 Script path: misc/cronjobs/membership\_expiry.pl
504
505 Does: Sends messages to warn patrons of their card expiration to the
506 :ref:`messaage queue <message-queue-label>` cron.
507
508 Requires: :ref:`MembershipExpiryDaysNotice`
509
510 Frequency: nightly
511
512 .. _in-processing/book-cart-label:
513
514 In Processing/Book Cart
515 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
516
517 Script path: misc/cronjobs/cart\_to\_shelf.pl
518
519 Does: Updates all items with a location of CART to the item's permanent
520 location.
521
522 Required by: :ref:`NewItemsDefaultLocation`,
523 :ref:`InProcessingToShelvingCart`, &
524 :ref:`ReturnToShelvingCart` system preferences
525
526 Frequency suggestion: hourly
527
528 .. _catalog-label:
529
530 Catalog
531 ~~~~~~~~~~~~~~~~~~~~~~~~~~
532
533 .. _import-webservice-batch-label:
534
535 Import Webservice Batch
536 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
537
538 Script path: misc/cronjobs/import\_webservice\_batch.pl
539
540 Does: A cron job for processing import bach queues of type 'webservice'.
541 Batches can also be processed through the UI.
542
543     **Note**
544     
545     This script is used for OCLC Connexion
546     
547 .. _connexion-import-daemon-label:
548
549 Connexion Import Daemon
550 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
551
552 Script path: misc/bin/connexion\_import\_daemon.pl
553
554 Does: A daemon that listens for OCLC Connexion requests and is compliant with
555 OCLC Gateway specification. It takes requests with MARC XML and import batch
556 parameters from a configuration file and forwards it to svc/import_bib
557
558     **Note**
559     
560     This script is used for OCLC Connexion
561
562 .. _delete-items-label:
563
564 Batch Item Deletion
565 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
566
567 Script path: misc/cronjobs/delete\_items.pl
568
569 Does: A batch item deletion tool, which generates a query against the items
570 database and deletes the items matching the criteria specified in the
571 command line arguments.
572
573 .. _check-url-quick-label:
574
575 Check URL Quick
576 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
577
578 Script path: misc/cronjobs/check-url-quick.pl
579
580 Does: Check URLs from biblio records.
581
582     **Note**
583     
584     This script replaces the check-url.pl script
585
586 .. _check-urls-label:
587
588 Check URLs
589 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
590
591 Script path: misc/cronjobs/check-url.pl
592
593 Does: checks URLs in 856$u field. Script output can now be formatted in
594 CSV or HTML. The HTML version links directly to MARC biblio record
595 editor.
596
597 Frequency suggestion: monthly
598
599 Learn more: http://wiki.koha-community.org/wiki/Check-url_enhancements
600
601 .. _delete-records-via-leader-label:
602
603 Delete Records via Leader
604 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
605
606 Script path: misc/cronjobs/delete\_records\_via\_leader.pl
607
608 Does: Attempt to delete any MARC records where the leader character 5 equals 'd'
609
610 .. _update-authorities-label:
611
612 Update Authorities
613 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
614
615 Script path: misc/cronjobs/merge\_authorities.pl
616
617 Does: Updates biblio data with changes to authorities records
618
619     **Note**
620
621     The name of this script is misleading. This script does not merge
622     authorities together it instead merges authority data with linked
623     bib records. Edits to authority records will be applied to
624     bibliographic records that use that authority when this script is
625     run.
626
627 Required by: `dontmerge <#dontmerge>`__ system preference
628
629 Frequency suggestion: nightly
630
631 .. _serials-update-label:
632
633 Serials Update
634 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
635
636 Script path: misc/cronjobs/serialsUpdate.pl
637
638 Does: checks if there is a "late" issue on active subscriptions, and if
639 there is, the script will set it as late, and add the next one as
640 expected.
641
642 Frequency suggestion: nightly
643
644 .. _automatic-item-update-label:
645
646 Automatic item update
647 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
648
649 Script path: misc/cronjobs/automatic\_item\_modification\_by\_age.pl
650
651 Does: updates items based on the list of rules set forth in the
652 :ref:`Automatic item modifications by age` tool
653
654 Required by: :ref:`Automatic item modifications by age`
655
656 Frequency suggestions: nightly
657
658 .. _opac-label:
659
660 OPAC
661 ~~~~~~~~~~~~~~~~~~~~~
662
663 .. _rss-feeds-label:
664
665 RSS Feeds
666 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
667
668 Script path: misc/cronjobs/rss/rss.pl
669
670 Does: Produces an RSS XML document for any SQL query (not used for
671 search results RSS feed). :ref:`Learn more <custom-rss-feeds-label>`.
672
673 Frequency suggestion: hourly
674
675 .. _authorities-browser-label:
676
677 Authorities Browser
678 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
679
680 Script path: misc/cronjobs/build\_browser\_and\_cloud.pl
681
682 Does: Generate content for authorities browse in OPAC
683
684 Required by: :ref:`OpacBrowser` system preference
685
686     **Important**
687
688     This preference and cron job should only be used on French systems.
689
690 .. _subject/author-clouds-label:
691
692 Subject/Author Clouds
693 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
694
695 Script path: misc/cronjobs/cloud-kw.pl
696
697 Does: Generates HTML keywords clouds from Koha Zebra indexes.
698 misc/cronjobs/cloud-sample.conf has a sample of how this script
699 operates.
700
701 Frequency: This is the type of script you can run once a month or so,
702 the content generated isn't going to change very much over time.
703
704 .. _system-administration-label:
705
706 System Administration
707 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
708
709 .. _services-throttle-label:
710
711 Services Throttle
712 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
713
714 Script path: misc/cronjobs/services\_throttle.pl
715
716 Does: resets the xISBN services throttle
717
718 Frequency suggestion: nightly
719
720 .. _clean-up-database-label:
721
722 Clean up Database
723 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
724
725 Script path: misc/cronjobs/cleanup\_database.pl
726
727 Does: Truncates the sessions table, cleans out old zebraqueue entries,
728 action logs and staged MARC files.
729
730 .. _share-usage-stats-label:
731
732 Share Usage Stats
733 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
734
735 Script path: misc/cronjobs/share\_usage\_with\_koha\_community.pl
736
737 Does: If you're sharing information via the :ref:`UsageStats`
738 feature this will send your info to the `Hea
739 website <http://hea.koha-community.org/>`__.
740
741 Frequency: monthly
742
743 .. _acquisitions-label:
744
745 Acquisitions
746 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
747
748 .. _clean-up-old-suggestions-label:
749
750 Clean up old suggestions
751 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
752
753 Script path: misc/cronjobs/purge\_suggestions.pl
754
755 Does: Removes old (defined by you) suggestions from the suggestion
756 management area.
757
758 .. _email-suggestions-to-process-label:
759
760 Email suggestions to process
761 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
762
763 Script path: misc/cronjobs/notice\_unprocessed\_suggestions.pl
764
765 Does: Generates a notice to the fund owner that there are suggestions in
766 need of processing
767
768 .. _edi-message-processing-label:
769
770 EDI Message Processing
771 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
772
773 Script path: misc/cronjobs/edi\_cron.pl
774
775 Does: Sends and received EDI messages
776
777 Frequency: Every 15 minutes
778
779 .. _remove-temporary-edi-files-label:
780
781 Remove Temporary EDI Files
782 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
783
784 Script path: misc/cronjobs/remove\_temporary\_edifiles.pl
785
786 Does: removes temporary EDI files that are older than 5 days
787
788 .. _deprecated-scripts-label:
789
790 .. _reports-label:
791
792 Reports
793 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
794
795 Run Report
796 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
797
798 Script path: misc/cronjobs/runreport.pl
799
800 Does: run pre-existing saved reports
801
802 Deprecated scripts
803 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
804
805 These should not be run without modification:
806
807 Script path: misc/cronjobs/update\_items.pl
808
809 Script path:misc/cronjobs/smsoverdues.pl
810
811 Script path:misc/cronjobs/notifyMailsOp.pl
812
813 Script path:misc/cronjobs/reservefix.pl
814
815 Script path:misc/cronjobs/zebraqueue\_start.pl