Take the 2-minute tour ×
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.

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
add comment

1 Answer

up vote 1 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
add comment

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.