Cron Jobs
Bir cron job, tekrar eden görevleri otomatik olarak tamamlamak için sunucunuz üzerinde bir komut ya da komut dizisi zamanlamak için bir linux komutudur. Bir cron job olarak çalıştırılan komut dizileri sıklıkla dosyalar veya veri tabanları üzerinde değişiklik yapmak için kullanılır, bununla birlikte, sunucu üzerindeki veri üzerinde değişiklik yapmayan diğer görevleri de gerçekleştirebilirler, e-posta bildirimleri göndermek gibi. Koha, beraberinde etkinleştirebileceğiniz bir çok cron job ile gelmektedir (arama motoru dizinleme, gecikme bildirimi oluşturma, veri temizleme ve daha fazlası), sizin için bu bölümde bu konular açıklanacaktır.
Crontab example
An example of a Koha crontab can be found in misc/cronjobs/crontab.example
The example includes sample boilerplate cronjob entries for the most commonly-used cronjobs.
Cron Jobs
Aşağıdaki konumlar bir kurulumun cron dosyalarını misc/ içine koyduğunu varsayar, Standart bir kurulum yaptıysanız, bu dosyaları misc/ içinde bulamazsanız bin/ içine bakın.
Backup
Daily Backup
Script path: misc/cronjobs/backup.sh
Does: Creates a daily backup of the Koha database.
Frekans önerisi: günlük
Ara
Sitemap
Script path: misc/cronjobs/sitemap.pl
Does: Processes all biblio records from a Koha instance and generates sitemap files complying with the protocol as described on http://sitemaps.org. The goal of this script is to be able to provide to search engines direct access to biblio records. It avoids leaving search engines browsing Koha's OPAC which would generate a lot of site traffic and server workload.
Note A file named sitemapindex.xml is generated. It contains references to multiple sitemap files. Each file contains at most 50,000 URLs and is named sitemapXXXX.xml.
The files must be stored on the Koha OPAC's root directory. In the same directory a robots.txt file with the following contents is required:
Sitemap: sitemapindex.xml User-agent: * Disallow: /cgi-bin/
Dizini yeniden oluştur
Script path: misc/migration_tools/rebuild_zebra.pl
Ne yapar: Zebra dizinlerini son değiştirilen verilerle güncelleştirir.
Gerek duyan: Zebra
Frekans önerisi: her x dakikada, (5-15 dakika arası) performans ihtiyaçlarına bağlı olarak
Dolaşım
Ayırma Sırası
Script path: misc/cronjobs/holds/build_holds_queue.pl
Ne yapar: Ayırtma sırası raporunu günceller
Required by: Holds Queue Report
Frekans önerisi: her 1-4 saatte
Tanım:
Kütüphane sisteminiz okuyucuların raftaki materyaller üzerinde ayırtma yapmalarına izin veriyorsa periyodik olarak çalıştırılması gereken bir betiktir. Bu betik, gelen bir ayırtma talebini karşılamak için hangi kütüphanenin sorumlu olacağını belirler.
It's behavior is controlled by the system preferences StaticHoldsQueueWeight and RandomizeHoldsQueueWeight.
Kütüphanelerinizin raf üzerinde ayırtma isteklerini yerine getirme işlemine katılmasını istemiyorsanız, *katılmakta* olan tüm kütüphanenin birim kodlarını virgüllerle ayırarak girerek, işleme katılmayı sağlayan kitaplıklarını listelemelisiniz (ör. "MPL, CPL, SPL, BML" vb.).
Ayırtma sırası varsayılan olarak, sistemin öncelikle ayırtma isteğinin halihazırda alınacağı kütüphanede mevcut olan materyalleri kullanarak gerçekleştireceği şekilde oluşturulacaktır. Bir ayırtma isteğini yerine getirecek materyal kütüphanede yoksa, build_holds__queue.pl bu sefer StaticHoldsQueueWeight içerisinde tanımlı kütüphanelerin listesini kullanacaktır. Eğer RandomizeHoldsQueueWeight devre dışı ise (varsayılan olarak devre dışıdır), komut dizini ayırtma isteklerini birimlerin StaticHoldsQueueWeight sistem tercihinde yer alma sırasına göre atayacaktır.
Örneğin, sisteminizin değişen boyutlarda (küçük, orta ve büyük) 3 kütüphanesi varsa ve siz ayırmaları daha küçük kütüphanelerden önce daha büyük kütüphanelere yüklemek istiyorsanız, Ayırma Kuyruğundaki Statik Tercihlerin "LRG,MED,SML" şeklinde gözükmesini isteyeceksiniz.
Ayırma yapma işlemleri yükünün kütüphane sisteminizin genelinde eşit olarak dağılmasını istiyorsanız, Ayırma Kuyruğu Rastgele Tercihlerini etkinleştiriniz. Bu sistem tercihi etkinleştirildiğinde, kütüphanelerdeki raflarda ayırma yapma isteği liste her defasında tekrar oluşturulduğunda rastgele hale getirilecektir.
Leaving StaticHoldsQueueWeight empty is contraindicated at this time. Doing so will cause the build_holds_queue script to ignore RandomizeHoldsQueueWeight, causing the script to request hold fulfillment not randomly, but by alphabetical order.
Süresi Dolan Ayırmalar
Script path: misc/cronjobs/holds/cancel_expired_holds.pl
Does: By default, this cron job will only automatically cancel holds where the user has set an expiration date. If the library is using the ExpireReservesMaxPickUpDelay and ExpireReservesMaxPickUpDelayCharge preferences then this script will also cancel holds that have been sitting on the hold shelf for too long and will (if the library does) charge the patron for not picking up the hold.
Frekans önerisi: günlük
Askıya alınmış ayırtmaları geri al
Script path: misc/cronjobs/holds/auto_unsuspend_holds.pl
Does: This script checks to find holds that should no longer be suspended and removes the suspension if the AutoResumeSuspendedHolds preference is set to 'allow'. This puts the patron back in to the queue where they were when the hold was suspended.
Frekans önerisi: günlük
Cezalar
Komut dizisi yolu: misc/cronjobs/fines.pl
Ne yapar: Cezaları hesaplar ve kullanıcıların hesaplarına gönderir.
Required by: finesMode system preference
Frekans önerisi: gecelik
Static Fines
Script path: misc/cronjobs/staticfines.pl
Does: this script calculates and charges overdue fines to patron accounts
Note If the Koha System Preference 'finesMode' is set to 'production', the fines are charged to the patron accounts. If set to 'test', the fines are calculated but not applied.
Note Fines won't be applied on a holiday.
Çok uzun süreli gecikmeler
Komut dizisi yolu: misc/cronjobs/longoverdue.pl
Ne yapar: materyallerin farklı kayıp durumlarına değiştirilmesi için gecikmeler belirlemenizi sağlar, ve isteğe bağlı olarak materyal kaydında belirtilen liste fiyatına göre yerine koyma bedeli tahsil etmenizi sağlar.
Frekans önerisi: gecelik
Not
Staff can control some of the parameters for the longoverdue cron job with the DefaultLongOverdueLostValue and DefaultLongOverdueChargeValue preferences.
Track Total Checkouts
Script path: misc/cronjobs/update_totalissues.pl
Does: updates the biblioitems.totalissues field in the database with the latest tally of checkouts based on historical issue statistics.
Frekans önerisi: gecelik
Warning
Veritabanı sunucunuzun zamanı, Koha sunucunuzun zamanı ile eşleşmiyorsa bu durumu dikkate almanız ve artımlı güncelleştirme için muhtemelen --interval bağımsız değişkeni yerine --since bağımsız değişkenini kullanmanız gerekecektir.
Not
This cronjob can be used if there is a performance concern. Otherwise, use the UpdateTotalIssuesOnCirc System Preference.
Çevrimdışı Dolaşım için Kullanıcı Dosyası Oluştur
Script path: misc/cronjobs/create_koc_db.pl
Does: Generates the borrowers.db file for use with the Koha Offline Circulation tool
Frekans önerisi: haftalık
Otomatik süre uzatma
Script path: misc/cronjobs/automatic_renewals.pl
Does: Will automatically renew items if you're allowing automatic renewal with your circulation and fine rules.
Frekans önerisi: gecelik
Kullanıcılar
Batch Delete Patrons
Script path: misc/cronjobs/delete_patrons.pl
Does: Deletes patron records in batch based on date not borrowed since, expired before, last seen, category code, or library branch.
Onaylanmamış Kayıtlar
Script path: misc/cronjobs/delete_expired_opac_registrations.pl
Does: Deletes patron registrations that were submitted via the OPAC but not reviewed by the library within the number of days entered in the PatronSelfRegistrationExpireTemporaryAccountsDelay preference.
Frekans önerisi: gecelik
Onaylanmamış Kayıtlar
Script path: misc/cronjobs/delete_unverified_opac_registrations.pl
Does: Deletes patron self registrations that were submitted via the OPAC but not confirmed via email within 24 hours. This is only necessary if you are requiring patrons to confirm their registrations via email with the PatronSelfRegistrationVerifyByEmail preference.
Frekans önerisi: saatlik
Kullanıcı Verisi Anonimleştirme
Script path: misc/cronjobs/batch_anonymise.pl
Ne yapar: Kullanıcı verisini anonimleştirmek için kullanılır. Bu, dolaşım geçmişinden kullanıcı numaralarını silecektir, böylece istatistikler muhafaza edilecek ancak kullanıcı bilgileri gizlilik nedeniyle kaldırılacaktır.
Çocuk Kullanıcıyı Yetişkin Kullanıcıya Güncelle
Komut dosyası yolu: misc/cronjobs/j2a.pl
Ne yapar: Kullanıcı kategorisinde tanımladığınız üst yaş sınırına ulaştığında genç kullanıcı kategorisinden genç/çocuk kullanıcıları ve kategori kodunu karşılık gelen yetişkin kullanıcı kategorisi ve kategori koduna dönüştürür.
Frekans önerisi: gecelik
DESCRIPTION
Bu komut dosyası, kullanıcıları çocuk statüsünden yetişkin statüsüne güncellemek, garantörlerini kaldırmak ve Kullanıcı Kategorisinde tanımlanan üst yaş sınırına ulaştığınızda kategori kodlarını uygun şekilde güncellemek için tasarlanmıştır.
USAGE EXAMPLES
"juv2adult.pl"
"juv2adult.pl" -b=<branchcode> -f=<categorycode> -t=<categorycode> (Processes a single branch, and updates the patron categories from category to category)
"juv2adult.pl" -f=<categorycode> -t=<categorycode> -v -n (Processes all branches, shows all messages, and reports the patrons who would be affected. Takes no action on the database)
Uyarılar
İleti Sırası
Script path: misc/cronjobs/process_message_queue.pl
Does: processes the message queue to send the check out, check in and hold filled emails and SMS message to users and sends outgoing emails to patrons. requires EnhancedMessagingPreferences to be on
Frekans önerisi: 1-4 saat
Önemli
Item due and Advanced due notices are controlled by the advance_notices cron.
Gelişmiş Bildirim
Script path: misc/cronjobs/advance_notices.pl
Does: prepares "pre-due" notices and "item due" notices for patrons who request them prepares notices for patrons for items just due or coming due soon. requires EnhancedMessagingPreferences to be on
Frekans önerisi: gecelik
Not
This script does not actually send the notices. It queues them in the message queue for later
Gecikme Bildirimi
Script path: misc/cronjobs/overdue_notices.pl
Ne yapar: Gecikmeye kalan kullanıcıları uyarmak için gecikme mesajlarını hazırlar (hem e-posta hem de basılı olarak)
Frekans önerisi: gecelik
Not
This script does not actually send the notices. It queues them in the message queue for later or generates the HTML for later printing
See also
The misc/cronjobs/advance_notices.pl program allows you to send messages to patrons in advance of their items becoming due, or to alert them of items that have just become due.
Print Overdues
Script path: misc/cronjobs/printoverdues.sh
Does: generates PDF files from HTML files in directories and prints them
Ayırma Bildirimlerini Yazdır
Script path: misc/cronjobs/gather_print_notices.pl
Ne yapar: Kullanıcının bir e-posta adresi olmadığı için gönderilmeyen ayırtma bildirimleri için mesaj kuyruğu boyunca arama yapar ve bir yazdırma bildirimi oluşturur
Frekans önerisi: gecelik
Talking Tech
Bu üçüncü parti ürün ayarlama hakkında daha fazla bilgi için Talking Tech Appendix sayfasına gidiniz.
Bildirimler Dosyası Gönderme
Script path: misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl
Ne yapar: Talking Tech i-tiva telefonla bildirim sistemi için Spec C giden bildirimler dosyası oluşturmak için komut dizisi.
Required by: TalkingTechItivaPhoneNotification
Frekans önerisi: gecelik
Uyarılar Dosyasını Alma
Script path: misc/cronjobs/thirdparty/TalkingTech_itiva_inbound.pl
Ne yapar: Talking Tech i-tiva telefonla bildirim sistemi için alınan sonuç dosyalarını işlemek için komut dizisi.
Required by: TalkingTechItivaPhoneNotification
Frekans önerisi: gecelik
Notify Patrons of Expiration
Script path: misc/cronjobs/membership_expiry.pl
Does: Sends messages to warn patrons of their card expiration to the messaage queue cron.
Requires: MembershipExpiryDaysNotice
Frekans: her gece
İşlemde/Kitap Sepetinde
Script path: misc/cronjobs/cart_to_shelf.pl
Ne yapar: CART konumundaki tüm materyalleri, materyalin kalıcı konumuna günceller.
Required by: NewItemsDefaultLocation, InProcessingToShelvingCart, & ReturnToShelvingCart system preferences
Frekans önerisi: saatlik
Katalog
Import Webservice Batch
Script path: misc/cronjobs/import_webservice_batch.pl
Does: A cron job for processing import bach queues of type 'webservice'. Batches can also be processed through the UI.
Not
This script is used for OCLC Connexion
Connexion Import Daemon
Script path: misc/bin/connexion_import_daemon.pl
Does: A daemon that listens for OCLC Connexion requests and is compliant with OCLC Gateway specification. It takes requests with MARC XML and import batch parameters from a configuration file and forwards it to svc/import_bib
Not
This script is used for OCLC Connexion
Batch Item Deletion
Script path: misc/cronjobs/delete_items.pl
Does: A batch item deletion tool, which generates a query against the items database and deletes the items matching the criteria specified in the command line arguments.
Check URL Quick
Script path: misc/cronjobs/check-url-quick.pl
Does: Check URLs from biblio records.
Not
This script replaces the check-url.pl script
URL'leri denetleyin
Komut dosyası yolu: misc/cronjobs/check-url.pl
Ne yapar: 856$u alanındaki URL'leri denetler. Komut dizisi çıktısı şimdi CSV veya HTML biçiminde olabilir. HTML sürümü doğrudan MARC biblio kayıt editörüne bağlantılıdır.
Frekans önerisi: aylık
Learn more: http://wiki.koha-community.org/wiki/Check-url_enhancements
Delete Records via Leader
Script path: misc/cronjobs/delete_records_via_leader.pl
Does: Attempt to delete any MARC records where the leader character 5 equals 'd'
Otoriteleri Güncelle
Script path: misc/cronjobs/merge_authorities.pl
Ne yapar: Bibliyo verisini, otorite kayıtlara yapılan değişikliklerle güncelleştirir
Not
Bu komut dosyasının adı yanıltıcıdır. Bu komut dosyası otoriteleri bir arada birleştirmez, bunun yerine otorite verilerini bağlantılı bibliyografik kayıtlarla birleştirir. Otorite kayıtları üzerinde yapılan düzenlemeler bu komut dosyası çalıştırıldığında o otoriteleri kullanan kayıtlar üzerine uygulanacaktır.
Gerek duyan: dontmerge sistem tercihi
Frekans önerisi: gecelik
Süreli Yayınlar Güncelleme
Komut dizisi yolu: misc/cronjobs/serialsUpdate.pl
Ne yapar: Aktif aboneliklerde "gecikmiş" bir sayı olup olmadığını kontrol eder, eğer gecikmiş bir sayı varsa, komut dizisi bunu 'gecikmiş' olarak ayarlayacak ve bir sonrakini 'bekleniyor' olarak ekleyecektir.
Frekans önerisi: gecelik
Automatic item update
Script path: misc/cronjobs/automatic_item_modification_by_age.pl
Does: updates items based on the list of rules set forth in the Automatic item modifications by age tool
Required by: Automatic item modifications by age
Sıklık önerileri: her gece
OPAC
RSS Beslemeleri
Komut dizisi yolu: misc/cronjobs/rss/rss.pl
Does: Produces an RSS XML document for any SQL query (not used for search results RSS feed). Learn more.
Frekans önerisi: saatlik
Otorite Tarayıcı
Script path: misc/cronjobs/build_browser_and_cloud.pl
Ne yapar: OPAC içerisindeki otorite tarama için içerik üretir
Required by: OpacBrowser system preference
Önemli
Bu sistem tercihi ve cron işi yalnızca Fransızca sistemlerde kullanılmalıdır.
Konu/Yazar Bulutları
Komut dizisi yolu: misc/cronjobs/cloud-kw.pl
Ne yapar: Koha Zebra İndekslerinden HTML anahtar kelime bulutları üretir. misc/cronjobs/cloud-sample.conf'da bu script'in nasıl çalıştığının bir örneği vardır.
Sıklık: Bu, takriben ayda bir kez çalıştırabileceğiniz script türüdür, oluşturulan içerik zaman içerisinde fazla değişiklik göstermeyecektir.
Sistem Yönetimi
Services Throttle
Script path: misc/cronjobs/services_throttle.pl
Does: resets the xISBN services throttle
Frekans önerisi: gecelik
Veri tabanını temizle
Script path: misc/cronjobs/cleanup_database.pl
Ne yapar: Oturumlar tablosunu kırpar, eski zebraqueue girişlerini, eylem günlüklerini ve çok aşamalı MARC dosyalarını temizler.
Sağlama
Eski önerileri temizle
Script path: misc/cronjobs/purge_suggestions.pl
Ne yapar: (Sizin tarafınızdan tanımlanan) eski önerileri, öneri yönetimi alanından kaldırır.
Email suggestions to process
Script path: misc/cronjobs/notice_unprocessed_suggestions.pl
Ne yapar: İşlenmesi gereken öneriler olduğu konusunda fon sahibi için bir bildirim oluşturur
EDI Message Processing
Script path: misc/cronjobs/edi_cron.pl
Ne yapar: EDI iletilerini gönderir ve alır
Frekans: Her 15 dakikada bir
Remove Temporary EDI Files
Script path: misc/cronjobs/remove_temporary_edifiles.pl
Does: removes temporary EDI files that are older than 5 days
Reports
Run Report
Script path: misc/cronjobs/runreport.pl
Does: run pre-existing saved reports
Norwegian patron database
NL sync to Koha
Script path: misc/cronjobs/nl-sync-to-koha.pl
Does: sync patrons from the Norwegian national patron database (NL) to Koha
Note Relies on NorwegianPatronDBUsername and NorwegianPatronDBPassword system preferences
NL sync from Koha
Script path: misc/cronjobs/nl-sync-from-koha.pl
Does: sync patrons from Koha to the Norwegian national patron database (NL)
Note Relies on NorwegianPatronDBUsername and NorwegianPatronDBPassword system preferences
Artık kullanılmayan komut dosyaları
Bunlar üzerlerinde değişiklik yapılmadan çalıştırılmamalıdır:
Script path: misc/cronjobs/update_items.pl
Komut dizisi yolu:misc/cronjobs/smsoverdues.pl
Komut dizisi yolu:misc/cronjobs/notifyMailsOp.pl
Komut dosyası yolu:misc/cronjobs/reservefix.pl
Script path:misc/cronjobs/zebraqueue_start.pl
Social data
Get report social data
Script path: misc/cronjobs/social_data/get_report_social_data.pl
Does: downloads data from Babelthèque to add to OPAC records
Frekans önerisi: gecelik
Update social data
Script path: misc/cronjobs/social_data/update_social_data.pl
Does: updates OPAC records with Babelthèque social data