It would be very helpful if you could place the script here, at least the relevant parts, but the things that I tested:
- Did you enable buffering?
- Are you running the process as something like nohup or something else that can buffer it?
- Have you changed any other buffering settings?
Output only at the end of the script seems to be a buffering problem.
source share