[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: More/less'ing stderr



Hi csj,

> How can I more/less stderr? A couple of programs I use (e.g. 
> cdrecord) use stderr for --help. So my usual method of scrolling thru 
> the built-in help ("programfoo --help | more") doesn't work.

Try "programfoo 2>&1" -- this redirects stderr to stdout, which you can
then pipe to less.

You can find this in `man bash`, search for REDIRECTION.

Hope this helps.

Best regards,

  Manuel

------------------------------------------------------------------------------
Manuel Reiter		 	   |         reiter@th.physik.uni-frankfurt.de
Institut fuer Theoretische Physik  |
J.W.Goethe Universitaet		   |
Robert-Mayer-Str. 8-10		   |
D-60054 Frankfurt am Main	   |
Germany				   |  (Voice: [+49]-69-798-22632, Fax: -28350)



Reply to: