Copy output of the program to the screen and also to the file
I have written client-server application in C. I run the server in linux.
I need to do simple logs of what server do. I print it to the screen.
Please how can I copy output of the screen also to the file.
Thx