ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Melissa Hao <>
Subject Re: getting the exec task to run a script which spawns a child process
Date Fri, 28 Feb 2003 19:27:50 GMT
Thanks Bill, that simple solution worked great.

I have another question.  It seems like a simple question but I couldn't find the answer to
it.  How do I echo the contents of a file?


Bill Burton wrote:

> Hello,
> Melissa Hao wrote:
> > Hi,
> >
> > I use the exec task to run a shell script called has "bar &"
inside of it, which spawns a background child process. finishes pretty quickly, but
the exec task waits for bar to finish before moving on.  This is a problem for me because
bar is supposed to run indefinitely.
> >
> > I searched this mailing list but I haven't found my exact problem.  I found,
which explains a workaround for getting to run indefinitely.  Do I use the same workaround
to get bar to run indefeintely?
> I posted a more recent version you can read at
> But all you need to do in is call bar like this:
>     nohup bar </dev/null > bar.out 2>&1 &
> so that all of stdin, stdout and stderr are redirected before putting it
> in the background.
> -Bill
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message