User Tools

Site Tools


ops102:more_solution

Solution: More

Start with the Brainteaser: More page.

Did you solve the problem?

If the stdout of the more (or less) program is tied up with input from another process, the two remaining standard file descriptors (stdout and stderr) are still connected to the terminal.

The more command reads the keyboard input from stdout. Although we think of stdout and stderr as being used for output only, they are two-way connections, and therefore can be used to read from the terminal!

ops102/more_solution.txt · Last modified: 2024/06/13 23:44 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki