lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV What's wrong here?


From: Hiram Lester, Jr.
Subject: Re: LYNX-DEV What's wrong here?
Date: Sun, 3 Nov 1996 17:26:21 -0600 (CST)

On Fri, 1 Nov 1996, Klaus Weide wrote:

>   lynx -trace <url>  2>trace.log
> 
> works fine with a decent shell.  ("2" stands for stderr, the above means
> only stderr is redirected while stdout is not.)  [csh and tcsh probably
> don't qualify for this purpose, so use something else.]

What do you mean "decent" shell?!? :)  Yes, you are correct in that this
method is for bourne shell (/bin/sh) and it's many derivatives (bash, ash,
zsh, ksh, etc.).  csh and tcsh let you redirect stdout or stdout AND
stderr, but not stderr by itself.  The following trick works if you are
want to direct stderr to /dev/null:

(blah &> /dev/null) > /dev/tty

That routes stderr and stdout ("&>") to /dev/null and just stdout to the
screen.  csh is nice, but not for scripting. :)

   +------------------------------------+-------------------------------+
   | Hiram W. Lester, Jr.               | E-Mail: address@hidden    |
   | Computer Science                   | Home page:                    |
   | Middle Tennessee State University  |   http://pobox.com/~hwlester/ |
   +------------------------------------+-------------------------------+

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]