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. Restart PC Server each day from crontab

    Restart PC Server each day from crontab

    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, 21, 22, 23

    Description:
    We have had almost daily cases of "runaway" pc servers. I suspect some combination of problems between the network, pc's which were left connected overnight that glitch, or any combination of things.
    The easiest way to clear this seems to be to restart the servers each day. I tried adding this as a step in our CRON job, but it doesn't seem to work. The command I used is below.
    Can someone suggest why this command isn't working in CRON when the command seems to work fine when issued from the command line?
    30 3 * * * csh -f /exlibris/aleph/a23_1/aleph/proc/pc_server 6991 >& /dev/null &;

    Resolution:
    The reason this command is not working from cron is that it is missing the standard Aleph environment variables.
    The way to accomplish what you want is to create another c-shell.

    In the first line of this script you must source aleph_start file to setup environment and then you may call pc_server

    Something like this:
    source /exlibris/aleph/u16_1/alephe/aleph_start
    csh -f /exlibris/aleph/a16_1/aleph/proc/pc_server 6991


    You may put this little script in the crontab of user aleph


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Restart of the system is not working properly on RHEL 7
      • Restart Servers from job_list
    • 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