amar deep kumar <kumaramar_sonu@rediffmail.com> writes: > Hi, > I have tried fflush(NULL). but its not working. > exact situation is like this - > ./executable >> test.out Your executable needs to fflush(stdout) periodically while it runs. Ideally, it needs to also run fsync(fileno(stdout)) periodically as well. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>