This is a realy old post I found on the archives:
> On Sun, Aug 27, 2000 at 02:05:07PM -0400, Andrew Majercik wrote:
> > Applications "tie" themselves to the console window in a parent/child
> > relationship. (once the parent goes away, so do all the children!) What you
>
> Actually, they are tied to the process which spawned them (typically
> the shell). It' a subtle difference.
>
> > need to do is detach the process from the terminal. One way of doing this
> > is to run it as a daemon (if there are other ways, I do not know them ),
> > which essentially forks a process(which copies the process), and exits that
> > process, leaving a detached child process(your java app, in this
> > case). It
>
> This can be done with a simple shell script.
Ive done this, but I want the user that ran the shell script to get a message
if the application dosnt load properly. By that I mean the java app reads its
config files, if that fails, then the shell script should display 'fail' or
something..
The problem is getting the Java app to display something, and the shell script
to know that its failed, and how long to wait etc.
Ultimately i would like to rid my self of the shell script, and do something
to detach the JVM process from the shell process if it loads successfully. But
as Chris said in the original email this would definately not be platform
friendly.
This was an old post, is there another or better way to do it now?
--
[EMAIL PROTECTED] Do not meddle in the affairs of dragons, because you are
crunchy and taste good with ketchup.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]