Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 8th, 2002, 08:05 PM
adamst68 adamst68 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 11 adamst68 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old January 8th, 2002, 08:48 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old January 8th, 2002, 09:07 PM
adamst68 adamst68 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 11 adamst68 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old January 8th, 2002, 09:38 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Cron Question for Newbie


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT