The following topic shows the standard cron file supplied with the Capita LMS. If you need to change the cron, please refer to the topic 'Editing the cron'.
Note: you may want to maximise this window to view the contents more easily.
##############################################################
#
# Standard
cron file
# ================================
# Notes:
#
# value 1 is minutes
# value 2 is hours
# value 3 is day of month (e.g. 31st)
# value 4 is month
# value 5 is day of week (Sunday=0, Monday=1, Saturday=6)
#
# Any output from the command is written the file specified after the "1>".
# Should the command fail errors will be written to the file specified
after
# the "2>". If
no 2> is specified, error messages will be sent to mail,
# which is stored in /var/mail/root.
#
# 1> output is generally written to files ending ".log" in
/var/tmp
# 2> output is generally written to files ending ".err" in
/var/tmp
# >/dev/null means that outputs do not get written to a file
# 2>&1 indicates that errors should be written to the same file
as the normal
# output file.
#
# When a job runs it is recorded in the file /var/cron/log
#
# Note that not all of the jobs in this cron exist as shipped scripts
# and may require setting up manually
#############################################################################
#
#=======================================================================
# Status Reports
#=======================================================================
#=========================
# System activity reports
#=========================
#0 * * * 0,6 /bin/su
- sys -c "/usr/lib/sa/sa1" >/dev/null 2>&1
#0 19-7 * * 1-5 /bin/su
- sys -c "/usr/lib/sa/sa1" >/dev/null 2>&1
#0,20,40 8-18 * * 1-5 /bin/su
- sys -c "/usr/lib/sa/sa1" >/dev/null 2>&1
#==============================
# Run and print status reports
# Note that dailystatus.sc and weeklystatus.sc are not part of the standard
ship
# and would need to be set up at installation if required
#==============================
#07 09 * * 2-5 /bin/su - talis -c "dailystatus.sc > /scratch/dailystatus.out"
>/dev/null 2>&1
#15 09 * * 2-5 /bin/su - talis -c "lp /scratch/dailystatus.out"
>/dev/null 2>&1
#07 09 * * 1 /bin/su - talis -c "weeklystatus.sc > /scratch/weeklystatus.out"
>/dev/null 2>&1
#15 09 * * 1 /bin/su - talis -c "lp /scratch/weeklystatus.out"
>/dev/null 2>&1
#=============
# top5 report - use to monitor database space
#=============
#00 4 * * 1 /bin/su - sybase -c "/usr/opt/blcmp/backup/bin/top5 >/scratch/top5.txt"
>/dev/null 2>/dev/null
#============
# sys_config scripts
# These gather system information to aid supporting the system
#============
#10 4 * * 1 /bin/su - root -c "/usr/opt/blcmp/backup/bin/sys_config"
>/dev/null 2>&1
#15 4 * * 1 /bin/su - ops -c "/usr/opt/blcmp/backup/bin/sys_config_collate"
>/dev/null 2>&1
#=======================================================================
# Securities and database jobs
#=======================================================================
# full_dbdump of all databases (to disk or tape)
#==============================
# to tape
#0 6 * * 1-6 /bin/su - ops -c "full_dbdump -tALL -y" >/var/tmp/full_dbdump.cron
2>&1
# alternative: dump to disk
#0 6 * * * /bin/su - ops -c "dump2disk.pl > /scratch/dump2disk.out"
>/var/tmp/dump2disk.cron 2>/var/tmp/dump2disk.err
#==========
# trandump
# These timings may need to be amended, e.g. for 24/7 running
#==========
#59,29 7-18 * * 1-6 chgrp blcmp /dev/console
#0 8-21 * * 1-5 /bin/su
- ops -c "trandump >/var/tmp/trandump.log" >/dev/null
2>/var/tmp/trandump.err
#======================
# Full software backup
#======================
#0 11 * * 2 /bin/su - ops -c "full_softdump > /var/tmp/full_softdump.log"
1>/dev/null 2>/var/tmp/f
ull_softdump.err
# full_ufsdump of all filesystems. This script is normally only avaiable
on "hardened" systems
#30 1 * * 2 /usr/opt/blcmp/backup/bin/full_ufsdump.sh >/var/tmp/full_ufsdump.log
2>/var/tmp/full_u
fsdump.err
#==============
# update_stats
#==============
#30 8 * * 0 /bin/su - talis -c "update_stats prod_talis >/var/tmp/update_stats.log"
>/dev/null 2>/
var/tmp/update_stats.err
#===================
# Database checker
#===================
#00 10 * * 0 /bin/su - ops -c "checkstorage >/var/tmp/checkstorage.log"
>/dev/null 2>/var/tmp/chec
kstorage.err
#===================
# archive_trandumps
#===================
#0 10 * * 1 /bin/su - ops -c "archive_trandumps >/var/tmp/archive_trandumps.log"
>/dev/null >/var/
tmp/archive_trandumps.err
#========================
# Save databases to disk
#========================
#0 5 * * 1 /bin/su - sybase -c "/usr/opt/blcmp/backup/bin/save_master"
>/var/tmp/save_master.cron
2>/var/tmp/save_master.err
#sybsystemprocs db save to disk
#30 5 * * 1 /bin/su - sybase -c "/usr/opt/blcmp/backup/bin/save_sybprocs"
>/var/tmp/save_sybprocs.
cron 2>/var/tmp/save_sybprocs.err
#=======================================================================
# Cleanup Jobs
#=======================================================================
#30 3 * * 2-6 /bin/find / -name core -exec rm -f {} \; >/dev/null 2>&1
#30 4 * * 2-6 /bin/find / -name nohup.out -exec rm -f {} \; >/dev/null
2>&1
# clear_logs script rotates frequently-used log files
# To specify logs to clear, edit /users/talis/admin/logs_to_clear
#30 0 * * 0 /users/talis/admin/clear_logs
>/tmp/clear_logs.log 2>&1
#0 7 * * 2 /usr/bin/find /usr/opt/blcmp/talis/reports -mtime +30 -exec
rm -f {} \; >/dev/null 2>&1
# Additional - amend as required for filename(s) and number of days to
keep
#49 3 * * 0 /usr/bin/find /scratch/xxxxx.rep.*
-mtime +7 -exec rm -f {} \; >/dev/null 2>&1
#49 3 * * 1 /usr/bin/find /scratch/blcmp/mis/xxxxx.rep.*
-mtime +28 -exec rm -f {} \; >/dev/null2>&1
# Clear out listener logs for users of mobile - note that the directory
may differ for some sites
# 00 6 * * 1 /usr/bin/find /scratch/blcmp/mobile/listener*
-mtime +30 -exec rm -f {} \; >/dev/null 2>&1
#=======================================================================
# Application-Related
#=======================================================================
#==============
# Compressions
#==============
# Drops out-of-date rows in WORK_UPDATE
#35 2 * * 2 /bin/su - talis -c "wku_compress.pl -e30" 1>/dev/null
2>/var/tmp/wku_compress.pl.err
# Drops out-of-date rows in ITEM_UPDATE
#40 2 * * 2 /bin/su - talis -c "itu_compress.pl -e30" 1>/dev/null
2>/var/tmp/itu_compress.pl.err
# Drops obsolete ILL request sequences
#45 2 * * 2 /bin/su - talis -c "irs_compress > /usr/opt/blcmp/data/utils/irs_compress.out"
1>/dev/null 2>/var/tmp/irs_compress.err
#=================
# Loan compress
#================
#00 18 * * 6 /bin/su - talis -c "lo_compress.pl -q1 -u -dprod_talis
-r/scratch -z > /scratch/lo_compress.out" >/var/tmp/lo_comp.run
2>&1
#==============
# Reservation jobs
#==============
#Set Reservation Flags for newly-acquired items (add in stock to active
res's)
#25 23 * * 1 /bin/su - talis -c "res_add_itms -dprod_talis -tINTRAN"
1>/dev/null 2>/var/tmp/res_add_itms.err
#25 23 * * * /bin/su - talis -c "res_add_itms -dprod_talis -tINTRAN
-b20000" 1>/dev/null 2>/var/tmp/res_add_itms.err
#30 0 * * 1-6 /bin/su - talis -c "resupdate.pl -dprod_talis -tALL
>/var/tmp/resupdate.log" 2>/var/tmp/resupdate.err
#=============
# Cataloguing
#=============
#0 22 * * 1-6 /bin/su - ops -c "unlocker >/var/tmp/unlocker.log"
>/dev/null 2>/var/tmp/unlocker.err
#0 18 * * 1-5 /bin/su - ops -c "wku_update.pl -dprod_talis -u"
>/dev/null 2>&1
# Logically delete works with no items
#00 18 * * 0-6 /bin/su
- report -c "work_logdelete.pl -m20000 -r/users/report -s/users/report
-u -v > /scratch/logdelete.rep" 2>/scratch/logdelete.err
#==============
# Acquisitions
#==============
#00 2 * * 0 /bin/su - talis -c "fun_totals.pl -pfun_totals.param -u
-v" >/dev/null 2>/var/tmp/fun_totals.err
#00 2 * * 0 /bin/su - talis -c "sup_totals.pl -psup_totals.param -u
-v" >/dev/null 2>/var/tmp/sup_totals.err
# EDI template lines
#5 8 * * 1-5 /bin/su - talis -c "/usr/opt/blcmp/talis/bin/orr_ack_imp"
1>/dev/null 2>/var/tmp/orr_ack_imp.err
#30 02 * * 1-6 /bin/su - ops -c "/usr/opt/blcmp/data/impdir/XX_order_import"
1>/dev/null 2>/var/tmp/XX_order_import.err
#45 04 * * 1-6 /bin/su - ops -c "/usr/opt/blcmp/data/impdir/XX_invoice_import"
1>/dev/null 2>/var/tmp/XX_invoice_import.err
# Drops unwanted potential orders
#50 2 * * 2 /bin/su - talis -c "orr_pot_ords_del -m5000" 1>/dev/null
2>/var/tmp/orr_pot_ords_del.err
#==================
# Borrower scripts
#==================
#30 23 31 07 4 /bin/su - talis -c "/usr/opt/blcmp/talis/utils/bin/bor_anon_delete.pl
-pbor_anon_delete.param -dprod_talis -tLASTTRANS -v -u" 1>/var/tmp/bor_anon_delete.log
2>/var/tmp/bor_anon_delete.err
#30 23 08 08 5 /bin/su - talis -c "/usr/opt/blcmp/talis/utils/bin/bor_anon_delete.pl
-pbor_anon_delete.param -dprod_talis -tDELETED -u -v -z" 1>/var/tmp/bor_anon_delete.log
2>/var/tmp/bor_anon_delete.err
#30 2 * * 1-6 /bin/su - talis -c "/usr/opt/blcmp/talis/utils/bin/bor_block.pl
-v" >/dev/null 2>&1
# Template borrower import line. Amend for library code, barcode length
(and hemis argument if necessary)
# 30 2 * * 2 /bin/su - talis -c "borr_import -a xx 8 /scratch >
/scratch/borrower_import.out" >/var/tmp/borrower_import.cron
2>&1
#======
# OPAC
#======
# Update the05 22 * * catalogue
#0 23 * * 1-5 /bin/su - ops -c "update_daily_access_points >/var/tmp/update_daily_access_points.log"
>/dev/null 2>/var/tmp/update_daily_access_points.err
#0 1 * * 1-5 /bin/su - ops -c "/usr/opt/blcmp/talis/access_points/authority_ap
>/var/tmp/authority_ap.log" >/var/tmp/authority_ap.err 2>&1
# Update item-based Mindexes
# 2 /bin/su - ops -c "itu_update_wku.pl" 1>/dev/null 2>/var/tmp/itu_update_wku.pl.err
# Lines to stop/restart grabber overnight
# 05 22 * * 1-6 /bin/su - root -c "/usr/local/marcgrabber/bin/marcgrabberctl.sh
stop" >/var/tmp/grabberstop.log 2>/var/tmp/grabberstop.err
# 00 08 * * 1-6 /bin/su - root -c "/usr/local/marcgrabber/bin/marcgrabberctl.sh
start" >/var/tmp/grabberstart.log 2>/var/tmp/grabberstart.err
#=======================================================================
# Daemons
#=======================================================================
# Stop/start daemons and rename reports
# 0 8 * * 1-5 /bin/su - ops -c "archive_daemon_reports >/var/tmp/archive_daemon_reports.log"
>/dev/null 2>/var/tmp/archive_daemon_reports.err
# Ensure daemons don't run overnight
# 0 20 * * 1-6 /bin/su - ops -c "dae_term work_exp_dae" >/dev/null
2>&1
# 0 20 * * 1-6 /bin/su - ops -c "dae_term authorisor_dae" >/dev/null
2>&1
# 0 20 * * 1-6 /bin/su - ops -c "dae_term ord_exp_dae" >/dev/null
2>&1
# 0 20 * * 1-6 /bin/su - ops -c "dae_term work_merge_dae" >/dev/null
2>&1
# Start sip2 processes
#00 07 * * * /bin/su - talis -c "/usr/opt/blcmp/sip2/bin/start_sip2_server"
>/dev/null 2>&1
#=======================================================================
# Management information reports template commands
# These scripts are not part of the standard ship and would need to be
set up at installation if required
#=======================================================================
#00 22 * * 1 /bin/su - report -c "REPORTS_MON >/var/tmp/reports_mon.log"
>/dev/null 2>/var/tmp/reports_mon.err
#00 22 * * 2 /bin/su - report -c "REPORTS_TUE >/var/tmp/reports_tue.log"
>/dev/null 2>/var/tmp/reports_tue.err
#00 22 * * 3 /bin/su - report -c "REPORTS_WED >/var/tmp/reports_wed.log"
>/dev/null 2>/var/tmp/reports_wed.err
#00 22 * * 4 /bin/su - report -c "REPORTS_THU >/var/tmp/reports_thu.log"
>/dev/null 2>/var/tmp/reports_thu.err
#00 22 * * 5 /bin/su - report -c "REPORTS_FRI >/var/tmp/reports_fri.log"
>/dev/null 2>/var/tmp/reports_fri.err
#00 22 * * 6 /bin/su - report -c "REPORTS_SAT >/var/tmp/reports_sat.log"
>/dev/null 2>/var/tmp/reports_sat.err
#00 22 * * 0 /bin/su - report -c "REPORTS_SUN >/var/tmp/reports_sun.log"
>/dev/null 2>/var/tmp/reports_sun.err
#==================
# RLB notification - use to export details of holdings for contribution
to ILL union catalogues
#==================
#30 23 * * 5 /bin/su - talis -c "rlb_non_isbn.pl -dprod_talis -prlb_non_isbn.param"
>/var/tmp/rlb_non_isbn.log 2>/var/tmp/rlb_non_isbn
#==================
# PLR (Public Lending Right) extract script
#=================
#40 05 * * 3 /bin/su - talis -c "/usr/opt/blcmp/talis/utils/bin/loa_plr_retrieve.pl
-b01/07/06 -e31/08/06 -ploa_plr_retrieve.param" 2>/var/tmp/loa_plr_retrieve.err
#=======================================================================
# ILL jobs
#=======================================================================
#15,45 9-17 * * 1-5 su - ill -c "/usr/opt/blcmp/talis/ill_manager/bin/ill_send
ALL" >/var/tmp/ill_send.cron 2>&1
#20,50 9-17 * * 1-5 su - ill -c "/usr/opt/blcmp/talis/ill_manager/bin/ill_mail
DEFAULT" >/var/tmp/ill_mail.cron 2>&1
#=======================================================================
# Request rotation
#=======================================================================
#30 10 * * 1-5 /bin/su - talis -c "res_item_rotate.pl" >/var/tmp/res_item_rotate.log
2>&1
#30 15 * * 1-5 /bin/su - talis -c "res_item_rotate.pl" >/var/tmp/res_item_rotate.log
2>&1
#
#====================================================
# talislist scripts
#===============================
# TalisList to Talis Sync script
#===============================
#30 5 * * 1-6 /bin/su - talislist -c "date;cd /usr/opt/blcmp/talislist/Sync;TalisListTalisSync.sh"
>/usr/opt/blcmp/talislist/Sync/Sync.rep 2> /usr/opt/blcmp/talislist/Sync/Sync.err
#================================
# Talislist - stop and start tomcat weekly
# Amend if $TOMCAT_HOME is not held under /usr/local
#================================
#00 6 * * 1-6 /bin/su - talislist -c "/usr/opt/blcmp/talislist/bin/restart.sh"
1>/var/tmp/talislist_restart.cron 2>&1
#===============================
# trandump for talislist
#===============================
#10 8 * * 1-6 /bin/su - ops -c "trandump prod_list >/var/tmp/trandump_prodlist.log"
>/dev/null 2>&1
#
#=============================
# Customer-specific scripts to be entered below