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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 4th, 2001, 04:20 PM
neil_h neil_h is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 3 neil_h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I would like the host to automatically call a script, say maintain.pl, every night, say at 3:00am, that would perform database maintenance and create a report of the site activity for that day.

How does one schedule a routine execution like this? Or is this something that has to be done with perl or the scripting language?

Thanks,
Neil

Reply With Quote
  #2  
Old February 5th, 2001, 06:01 AM
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
Ask your host if they allow you to run cron.

* 3 * * * /server/path/to/maintain.pl > /server/path/to/report.txt

Reply With Quote
  #3  
Old February 5th, 2001, 01:29 PM
neil_h neil_h is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 3 neil_h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up sweet!

yes, cron is allowed/installed on my host. exactly what I was looking for. Thanks you are awesome!

Reply With Quote
  #4  
Old February 5th, 2001, 01:43 PM
neil_h neil_h is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 3 neil_h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PS,

why would it not be:

0 3 * * * /www/cgi-bin/maintain.pl

instead of

* 3 * * * /www/cgi-bin/maintain.pl

Neil

Reply With Quote
  #5  
Old February 5th, 2001, 03:24 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
Yes, it should be 0 3 * * * /www/cgi-bin/maintain.pl, or else it would run at 03:00AM to 03:59AM for 60 times. Sorry, I typed it to fast and didn't preview it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > scheduling routine executions?


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 4 hosted by Hostway