tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: RE: Running a process/service
Date Thu, 28 Sep 2000 15:55:09 GMT
Nice idea.. I was aware of the CRON utility on UNIX but i didn't know that WINDOWS has something
It's pretty straightforward that with that approach you get the scheduling logic "for free"
from the OS but you are writting platform dependent code.
So it's a trade-off as in most cases.


------  Original Message --------



 Sent:    Thu Sep 28 11:41:51 EDT 2000

 Subject: RE: Running a process/service

How about using the AT command? Type AT /? at a command prompt for usage.

-----Original Message-----
From: []
Sent: Thursday, September 28, 2000 11:27 AM
Subject: Re: Running a process/service

For time-based maintenance tasks i found very usefull a small package from called ServletMaintenance. It cannot be programmed to a run
at a specific time but rather between a specified time-interval
Programming a process to run at a specific time is a little bit more
complicated, you have for example a thread that checks every 1 minute the
time and if the hours part of the time is 5 then it executes the task.
In other words if you want to do something at 5:pm you need to check every 1
minute if you want to have "minute" accuracy. After the task is executed you
don't want it to be executed again in the next check that will happen at
So you also need to compare the DAY as well and if it is still the same day
do not execute again.

------  Original Message --------



 Sent:    Wed Sep 27 20:40:03 EDT 2000

 Subject: Running a process/service

Hi everybody,
   I was trying to find a way in which I should be able to run a process
to check for birthdays everynight at 12:00 and automatically send an email
to that person.I have figurde out how to send the email in java using the
smtp class but i still havent found out how to run a process or service in
java irrespective of who has looged on or if anybody has logged on(i am
using win2k) and then run the java code and send emails to the person who
has a birthday.
Any help is welcome,
Thanks for ur time,

View raw message