I have a binary which print data to screen, but I need the data to be printed in a particular file. Since I cannot find the original sourcd code, one thing I can do is to write another program to capture whatever data printed to the screen.
Normally we capture data from STDIN and print it to STDOUT. However, is there any way allowing getting data from STDOUT and print them into a particular file?
Thanks.