Solved

no crontab

Posted on 2001-06-06
1
133 Views
Last Modified: 2011-10-03
how do I update the database every 6 hours?
0
Comment
Question by:superquestions
1 Comment
 
LVL 8

Accepted Solution

by:
bebonham earned 100 total points
Comment Utility
you can just use sleep(6*60*60)

and then put it in a while loop.

what are you using to update the database....is it a perl script that needs to be run?

while(1)
{
#execute your action here
#like
#do update.pl;

sleep(6*60*60);
}


Bob

ps the process will run endlessly, you can kill it when your done, or make a switch file that tells it to be either on or off.



0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now