Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

About piping linux program output

Name: Anonymous 2007-03-24 2:26 ID:U7T3Wiax

Does anyone know how I can let the output of a linux program go to stdout and also a file output at the same time? This is because I want to see the progress on stdout (takes hours to run it), but at the same time I want to log the output in a text file too.

Name: Anonymous 2007-03-25 1:08 ID:j7KNsOP5

This is the OP. tried >>6 before but the output is buffered so it doesn't write to the file until the program exits. not keen to insert fflush command everywhere in the code. need help from EXPERT LINUX PROGRAMMERS.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List