How to stop the execution of Java program from Command line?
Posted
by Aakash
on Stack Overflow
See other posts from Stack Overflow
or by Aakash
Published on 2010-06-10T11:59:25Z
Indexed on
2010/06/10
12:02 UTC
Read the original article
Hit count: 272
My main field is .Net but recently I have got something to do with Java. I have to create a shell utility in Java that could run in background reading few database records after specified duration and do further processing. It's a kind of scheduler. Now I have few concerns:
How to make this work as a service. I want to execute it through a shell script and the utility should start running. Off course the control should get back to the calling script.
Secondly, eventually i may want to stop this process from running. How to achieve this?
I understand these are basic question but I really have no idea where to begin and what options are best for me.
Any help / advise please?
© Stack Overflow or respective owner