User Tools

Site Tools


ops102:more_solution

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ops102:more_solution [2024/06/13 19:42] – created chrisops102:more_solution [2024/06/13 23:44] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Solution: More ====== ====== Solution: More ======
  
-**Start with the +**Start with the [[Brainteaser More|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.1718307751.txt.gz · Last modified: 2024/06/13 23:42 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki