running command-line app in the background ==> stopped
I have an application that runs in the console, writes some things to the standard output. When I try to run it in the background, something like this happens:
> myapp >output.txt &
+ Stopped myapp >output.txt
<writing to output.txt...>
+ stopped myapp
+ myapp >output.txt &
+ Stopped myapp >output.txt &
==> this is the problem here. It simply changes to the stop state immediately when it's "told" to run in the background.
Is there any general reason for this or does that seem something application-specific?