Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running an ant (Java build tool) script on CentOS 5.5 that execs another java process. When I run the ant script in the background:

ant -f myfile.xml &> foo.out &

The forked process' state changes to stop and waits for input. As soon as I bring the process to the foreground it starts again (no input required on my part)

This does not occur on other machines running the same OS, CentOS 5.5.

share|improve this question
up vote 2 down vote accepted

I found the answer. A little googling brought up this page:

http://ant.apache.org/manual/running.html#background

Looks like ant immediately tries to read from standard input, which causes the background process to suspend

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.