Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Automatically Deleting Old Reports from p_manage_15 (or most logs)

    Automatically Deleting Old Reports from p_manage_15 (or most logs)

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 20

    Description:
    We have an automated manage-15 process that creates a lot of files (so many that it eventually clogs the data print directory.) Is there a script which would automatically delete the files older than 2 weeks?

    Resolution:
    Insert the "cd" and "find" commands shown below at the end of $aleph_proc/p_manage_15 (where "srf_man15" is the p_report_name in the p_manage_15 submission):

    ex_p_manage_15:
    end_p_proc
    cd $data_print
    find . -name CVS -prune -o -name "srf_man15*" -mtime +14 -print | xargs rm -rf >& /dev/null
    exit


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Automatically change the item process status from 'on order' to 'in process'
      • automating p_file_03
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 20
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved