pipes like perl
Piet van Oostrum
piet at cs.uu.nl
Thu Aug 25 06:06:19 EDT 2005
>>>>> "infidel" <saint.infidel at gmail.com> (i) wrote:
>i> .readlines() won't return until it hits end-of-file, but the "man"
>i> command waits for user input to scroll the content, like the "more" or
>i> "less" commands let you view "pages" of information on a terminal.
man shouldn't wait for user input if its output is a pipe. Try man man|cat.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
More information about the Python-list
mailing list