deko wrote:
Is there a way to get my script to run on regularly scheduled intervals
without using cron? My hosting provider sucks... cannot use cron... I was
thinking perhaps I could create a file every hour in a certain directory and
then fire the script when the file count reaches a certain number, and then
clear out the directory... or something like that. Any suggestions?
Thanks in advance.
create a "master" process, execute it in the background
$ ./timer &
that is in a loop:
loop
if nextinterval do something
wait until nextintervaltim e
goto loop
unless you are able to have access to the system level, you are out of luck.
Any process not assoiciated with the server itself, would probably be detecteced
and killed. Do yourself a favor, spend a few extra bucks, get DSL or Cable at a
level that will allow you to run your own server (and use a hardware firewall).
This can be done using DynamicDNS (static IP not necessary). You will not be
able to use outbound SMTP because your IP address does not backtranslate, but
that is no big deal. I use DDNS for inbound POP SMTP and my ISP for outbound.
If your ISP has a history of lots of downtime during the day, then you may need
to look for something more stable.
If they reboot the system for maintenance or whatever, you will have to restart
your script. Use a box that you have control over... Trying to use ISP
"freebies" is really bad idea. Bottom line: if it is that important, get your
own system to work with... BTW, I have 2 Linux boxes and one OpenVMS box on the
net using DDNS (zoneedit.com). .. All can do {L|V}AMP, but they also do a lot more :)
--
Michael Austin.
Consultant - Available.
Donations welcomed.
Http://www.firstdbasource.com/donations.html
:)