Using less to view output
Robert T. Repko (R Squared Consultants)
rtr at rsquared.com
Mon May 16 11:06:26 PDT 2005
Top posted for John,
There are 2 versions of less, one that came with SCO and one that came with
filePro. I did try an explicit path to both versions of less, in fact that
was one of the first things I tried.
# /usr/bin/less -V
SCO more, based on "less" version 374
Copyright (C) 1984-2001 Mark Nudelman
Portions Copyright (C) 1994-2002 Caldera International, Inc.
# /usr/local/bin/less -V
less 358
Copyright (C) 2000 Mark Nudelman
Believe it or not at 5/16/2005 12:54 PM, John Esak said:
>Hey Bob,
>This is kind of stupid... but it almost sounds like there is another "less"
>somewhere in your PATH *ahead* of the real "less" and the one you are
>hitting doesn't do anything at all. Try hardcoding the full path to less
>into the game.
>Maybe on the other systems it just happens to be that the user of filePro
>has the correct less in its PATH and on this one you don't?
>
>
>
>John
>
>
>
> > -----Original Message-----
> > From: filepro-list-bounces at lists.celestial.com
> > [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Robert T.
> > Repko (R Squared Consultants)
> > Sent: Monday, May 16, 2005 9:50 AM
> > To: Marc Brumlik
> > Cc: 'filePro List'
> > Subject: Re: Using less to view output
> >
> >
> > Believe it or not at 5/15/2005 10:28 AM, Marc Brumlik said:
> > >Bob Stockler wrote:
> > >
> > >>Robert T. Repko (R Squared Consultants) wrote (on Sat, May 14, 2005 at
> > >>11:14:05PM -0400):
> > >>
> > >>| Believe it or not at 5/14/2005 12:36 PM, Bob Stockler said:
> > >>| >
> > >>| >Wouldn't:
> > >>| >
> > >>| > printer27=ViaFile,nocodes,| less,View report
> > >>| >
> > >>| >work, and be simpler?
> > >>| | That was the first thing I tried, it's defined earlier in
> > the config
> > >>| file. That does not work either, less never displays the data.
> > >>
> > >>It works for me and works for Radley and maybe some others?
> > >>Anyone else?
> > >>
> > >>Bob
> > >>
> > >>
> > >As a test, write it to a file first. >/tmp/$$; less
> > >/tmp/$$ [and maybe ; rm /tmp/$$]
> >
> > If I remove the 'rm /tmp/fpfile$$' from the command the file does
> > exist in
> > /tmp and I can less the file from the command line. When I leave the 'rm
> > /tmp/fpfile$$' in place the file no longer exists in /tmp which
> > leads me to
> > believe the file is deleted by the rm command. Since rm is executed less
> > must be executed, which is why I am scratching my head wondering why less
> > is not displaying the file.
*******************************************************************************
* Robert T. Repko - R Squared Consultants | Voice: (610) 253-2849 *
* Serving the Computing World for 20+ years | Fax: (610) 253-0725 *
* Windows/Unix/Mac Networking, Cisco, Sonicwall | email: rtr at
rsquared.com*
* NJDOE Provider ID#: 763 | SPIN: 143010681 | Address: 4 Juniper Ave. *
* New Jersey SCC Pre-Authorized | Easton, PA 18045 *
*******************************************************************************
More information about the Filepro-list
mailing list