delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/18/06:27:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: <simon DOT p DOT cozens AT jp DOT pwcglobal DOT com>
Date: Tue, 18 Apr 2000 20:20:45 +0900
Subject: Re: How to do "xxx | more" using less or cat ?
To: Patrice DARGENTON <Patrice DOT Dargenton AT ens-lyon DOT fr>
Cc: cygwin AT sourceware DOT cygnus DOT com
Message-id: <CA2568C5.003E326D.00@au-aapmta001.aap.pwcinternal.com>
MIME-version: 1.0
X-Lotus-FromDomain: PRICE WATERHOUSE-JAPAN AT INTL
Note-from-DJ: This may be spam

> How to do "xxx | more" using less or cat ?

xxx | less

Or maybe I misunderstand the question.
If the messages are on standard error, you need
to redirect that to standard output - a pipe
connects output to input, and leaves error alone.

Standard error sits on file descriptor 2, and
standard output sits on file descriptor 1. So,
to do the redirection, you want something looking
like this:

xxx 2>&1 | less

I don't know if that's what you want, but it's
the answer to your question. :)

Simon
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019