|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Ask your host if they allow you to run cron.
* 3 * * * /server/path/to/maintain.pl > /server/path/to/report.txt |
|
#3
|
|||
|
|||
|
yes, cron is allowed/installed on my host. exactly what I was looking for. Thanks you are awesome!
|
|
#4
|
|||
|
|||
|
PS,
why would it not be: 0 3 * * * /www/cgi-bin/maintain.pl instead of * 3 * * * /www/cgi-bin/maintain.pl Neil |
|
#5
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > scheduling routine executions? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|