I am running a background process on Mac and have a problem with log update. If I run
someprog > mylog &
then mylog
is updated not immediately, but with some intervals - I guess it's due to buffering. Same thing with at now
. If I kill the program before output is written to mylog
, then I loose the data. There was no such problem with the same program on Linux machines, so I hope I can make it run-time-updated on Mac as well. Any idea how?
someprog
is a F77 program, which was not written by me.
I tried to ask this question at SuperUser, but no one can help me there.
EDIT1: I don't feel like changing the source, but keep it in mind. Logging works fine on Linux machines, so it should work on Macs as well. It must be a system setting, e.g. buffer size? It would be fine for me to limit the buffer size to a smaller value - now I have to wait hours to see something in the log.