Kenneth Parker <sea7k...@gmail.com> writes: > Have you tried the Command Line: "sync"?
Excellent question and I did, in fact, try that command just before killing the running process. It had no effect. <to...@tuxteam.de> also writes: > That won't help in the OP's case, I think: sync is about writing out > the operating system's buffers to the file system. In the OP's case > it's about the process's I/O buffers which haven't yet gone to the > operating system. Thanks to both of you. I hadn't thought of that but that probably explains why nothing happened other than the command "sync" successfully ran. I wrote the application that is creating this output in perl and there may be a unique solution there that solves this specific problem. That is not as good as a general course of action which works in all cases of output redirection but it beats nothing. A suggestion on a posting in stackoverflow was that one could open the file for appending, append your new output and then close it. I'll give that a try which should solve this one case. Apparently others have dealt with how to shake the most recent data out of buffers and commit it to disk and it is highly dependant on the operating system as to when the write actually goes to disk. Again many thanks. Martin McCormick