Amanda-Users

Re: Annoying problem in amrecover

2005-05-18 11:18:18
Subject: Re: Annoying problem in amrecover
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Wed, 18 May 2005 11:07:20 -0400
On Wed, May 18, 2005 at 03:48:20PM +0200, Paul Bijnens wrote:
> Guy Dallaire wrote:
> >Whil using amrecover, if I don an "ls" in the amrecover shell, even if
> >there are only 2 lines, I have to press "q" to get rid of a pager
> >(END) prompt. Is this normal ? Is there a way to tell the pager that
> >my terminal has "y" lines ? If so, what is the correct way on solaris
> >AND on Linux.
> 
> From this description I presume your pager is "less" on Linux.
> "man less" learns me that you need the "--quit-at-eof" option, e.g.
> by setting "LESS=--quit-at-eof; export LESS" in your .profile.
> Or maybe you even need "LESS=--QUIT-AT-EOF; export LESS", see the
> man page for the difference.
> 
> On Solaris "less" not standard software, unless you installed it.
> There the pager probably is "more", which already quits at eof of file.

Seems now it is Solaris standard (both 9 and 10):

    # pathfind less
    /usr/bin/less

    # pkgfind less
    /usr/bin/less  2002-03-02   SUNWless

If you don't like the quit at eof behavior "except" when in amrecover
create an alias or a wrapper; something like:

    alias amrecov='LESS="$LESS -E" _pathto_your_amrecover'

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>