Serial Comunication On Linux, compiled on Windows

I will check it with cat as well.

Use cat piped to tee, to see the output and write it to a file at the same time.