ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grenner Daniel <Daniel.Gren...@tetrapak.com>
Subject RE: antRunAsync and getting a background process to run indefinit ely
Date Thu, 17 Apr 2003 07:18:17 GMT
Try using "nohup java foo.bar > output.txt &" in the shell script instead.
Without the redirection to output.txt the output is redirected to
"nohup.out".

/Daniel Grenner.

-----Original Message-----
From: Melissa Hao [mailto:melissa.hao@oracle.com]
Sent: den 17 april 2003 01:26
To: user@ant.apache.org
Subject: antRunAsync and getting a background process to run
indefinitely


Hi,

I'm having trouble getting the antRunAsync workaround to work exactly the
way I want.

I use antRunAsync to run a shell script called oc4j.sh.  The shell script is
started asynchronously, which is great.  The shell script spawns a java
process in the background (eg, "java foo.bar &").  I would like this java
process to continue running after the ant process completes.  Currently, the
java process stops when the ant process stops.  Is there any way to get the
java process to run indefinitely?

--
thanks
Melissa



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message