#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    11
    Rep Power
    0

    How to run a script at a given time


    Hello there,

    I have a script that needs to be run daily. It is called sophos.sh and is used to update our Anti Virus software.

    How can I tell if this script is getting run daily ?
    How do I make it run daily if it sin't already ?

    cheers,

    Adam
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Denmark, Europe
    Posts
    15
    Rep Power
    0
    Hey Adam

    I think that you shall use cron for the job. I don't know much about it, but there are tons of information about the subject on the Internet.

    /
    Martin Soendergaard
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    5
    Rep Power
    0
    >> How can I tell if this script is getting run daily ?

    Check your cron log.

    >> How do I make it run daily if it sin't already ?

    Say 01:50 PM daily:

    50 13 * * * /full/server/path/to/sophos.sh

    There is an active sample of root's crontab at /etc/crontab so go read it before I have to say RTFM to you next time.

IMN logo majestic logo threadwatch logo seochat tools logo