Looks simple enough; you would think there is not much overhead with only those two system calls. In reality, this couldn't be further from the truth. Behind those two calls, the data has been copied ...
Put the mouse down, and copy and paste inside a terminal with your keyboard using Screen. Screen is a command-line tool that lets you set up multiple terminal windows within it, detach them and ...