folks
I have 3 java files
1) Parser ( parse xml files)
2) converter ( converts xml into lucene docs)
3) Searcher ( searches lucene docs)
I want to run this three programs in sequential order after every 2
minutes on my laptop( of course when i switched it on)
Is there any way to do this??
thanks
Philipp Leitner - 27 Apr 2006 22:12 GMT
I would say that this is in no way a java question, but a general "how
do I run programs at a given (scheduled) time in my operation system?"
question.
In an UNIX environment you might use cron to to that... as for Windows:
AFAIK there's a "run scheduled tasks" utility (whatever it is called)
which might do what you want.
/philipp
CSUIDL PROGRAMMEr schrieb:
> folks
> I have 3 java files
[quoted text clipped - 9 lines]
>
> thanks
Roedy Green - 27 Apr 2006 22:40 GMT
On 27 Apr 2006 14:07:51 -0700, "CSUIDL PROGRAMMEr"
<syedamjad_a@yahoo.com> wrote, quoted or indirectly quoted someone who
said :
>I want to run this three programs in sequential order after every 2
>minutes on my laptop( of course when i switched it on)
you can have a master program that uses a timer to trigger them. Use
multiple threads if you want the execution to potentially overlap.
see http://mindprod.com/jgloss/timer.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.