Find the answer to your Linux question:
Results 1 to 3 of 3
Does anyone know of any tools available to manage scripts run via a cron job? We've got multiple cron scripts running and need a way to manage logs, start/end dates ...
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    9

    Cron script management

    Does anyone know of any tools available to manage scripts run via a cron job? We've got multiple cron scripts running and need a way to manage logs, start/end dates and times, send failure notifications, etc. Most of our scripts are written in PHP, so a PHP class would be good, but not necessary. I could write my own, but I don't want to reinvent the wheel if there is already something out there.

    Victor

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    506
    It's not clear what you want to do.

    It sounds like you already have the scripts written the way you want them, so what do you want to do? Do you want to enable and disable the scripts? That could be done within the script itself. That is, if some file exists, don't do anything--just exit.

    Or each script could read a small configuration file to see what it is to do. Then all you need to do is edit (or regenerate by any means) the config file.

    Are these scripts being run as a user or by the system? I keep a file named crontab.txt under my home directory so when I want to make changes I can simply edit it and issue the command:
    crontab crontab.txt

  3. #3
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    So are you asking for, say, a BASH script to call your web scripts?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...