I have a program written in java that produces a number of reports from a given script that runs against a database. When I run the program like 'java javaprogram.jar &' (with various parameters) it puts it into the background and runs. However when run this way it produces concatenated reports i.e. 2 or 3 reports appearing in 1 file. However when run without the '&' (linux) the program runs and produces the reports without any issues.
Does anyone know what may be occurring, there is only 1 java program running.
Hope some one can help - Unfortunately I cannot show any code as its copyright.
Writing reports out using Java IO no third party libraries are used - parameters added are options on what report gets printed but none indicate amending reports together. So no they do not control output just the type of report. I was wondering if java is trying to optimize the work and moving some of the work to another processor - although there is no such code being used in the program.
I will try as you suggested a small program that does similar and check to see if it acts in a similar way.