|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cron Question for Newbie
hello there,
I've got a couple of questions: when I do a crontab -e on one of our freebsd boxes it comes up with the following (plus a few more lines, but this is the one I'm interested in): 0 0-23/12 * * * /usr/local/icr/sophos.sh >/dev/null 2>&1 Could someone let me know what frequency this is being run ? Also, I want to add this line to our other freebsd box but am unsure where to find the file to edit - could you possibly let me know that as well. Sorry for my ignorance, I'm very new at Unix etc and want to at least make sure our anti-virus software is getting updated each night (sophos.sh). cheers, Adam |
|
#2
|
|||
|
|||
|
Why Apache forum?
>> what frequency this is being run ? Every 12 hours at 0:00 and 12:00. It can also be written as */12. >> where to find the file to edit Copy sophos.sh to your other box. >> getting updated each night You probably should avoid peak hour/minute. |
|
#3
|
|||
|
|||
|
Thanks for that and sorry for posting in the wrong forum.
With regards to ">> where to find the file to edit " I actually meant the Cron file (is that right ?) I already have the sophos.sh file on both machine. Do you know where I might find it ? Also, instead of every 12 hours, how would I set it for say midnight each night. cheers, Adam |
|
#4
|
|||
|
|||
|
>> I actually meant the Cron file
You don't edit the crontab file by hand, run crontab -e, then edit it from there. >> how would I set it for say midnight each night Running it at exact midnight is bad. Anyway: 0 0 * * * /usr/local/icr/sophos.sh >/dev/null 2>&1 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Cron Question for Newbie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|