December 23rd, 2001, 09:09 PM
How to run a script at a given time
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 ?
December 24th, 2001, 04:07 AM
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.
December 24th, 2001, 08:01 AM
>> 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.