Sign up ×
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

1 Answer 1

up vote 2 down vote accepted

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

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

share|improve this answer

Your Answer


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.