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. clearing TMPDIR and LOGDIR

    clearing TMPDIR and LOGDIR

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Aleph
    • Product Version: 16.02

    Description:
    The $alephe_root/aleph_startup has lines which are supposed to remove all files but the most recent nn files from $TMPDIR and $LOGDIR, don't seem to work: no files are actually deleted.
    What can be done so the files are deleted from the $TMPDIR and $LOGDIR?

    Resolution:
    Deleting $TMPDIR files while servers or batch jobs are running can definitely be problematic.
    There is no reason that $TMPDIR files need to be kept from one ALEPH startup to another.
    Startup time is the ideal time to delete them.
    I suggest that you remove all the $TMPDIR lines in aleph_startup and simply have these:

    echo "Cleaning log files..."
    echo " "

    cd $TMPDIR
    rm *

    Deleting $LOGDIR files while servers are running can likewise be problematic.
    Deleting all but the nn most recent files at startup time could be OK, but if it's not working, you will need to run UTIL-X-5 with its "number of days to retain" set, for instance, to "2". As long as your servers are restarted nightly or are not idle for more than 2 days, this should work fine even though the servers are up while you are running it.

    Additional Information

    clean up,TMPDIR, LOGDIR


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Clearing circulation log for specific group of items
      • Clickatell connection type for use with SMS Proxy API
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 16.02
      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