Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Restart PC Server each day from crontab

    • 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
    • Was this article helpful?