Using less to view output

Robert T. Repko (R Squared Consultants) rtr at rsquared.com
Sat May 14 20:14:05 PDT 2005


Believe it or not at 5/14/2005 12:36 PM, Bob Stockler said:
>Robert T. Repko (R Squared Consultants) wrote (on Sat, May 14, 2005 at 
>11:08:03AM -0400):
>
>| I have the following printer definition setup in one of my clients filepro
>| config file.  This successfully works at other locations but I am unable to
>| get it to work on this system.
>|
>| printer27=ViaFile,nocodes, | cat > /tmp/fpfile$$ ; less /tmp
>| /fpfile$$ ;rm /tmp/fpfile$$,Send output to /tmp/fpfile$$
>|
>| When I run a report the fpfile is created, and removed, but is not
>| displayed, I am immediately returned to the command prompt or menu.  I am
>| able to run less from the command prompt to view the fpfile generated by
>| the report, it just doesn't happen during the report process.  I have tried
>| using an explicit path to less (/usr/local/bin/less) but it did not
>| help.  Since the file is removed, which happens after less, less must run
>| but exits immediately.
>|
>| Running filePro 5.0.09.D4 on SCO OSR5 5.0.7
>|
>| SCO more, based on "less" version 374
>| Copyright (C) 1984-2001 Mark Nudelman
>| Portions Copyright (C) 1994-2002 Caldera International, Inc.
>|
>| The only environment setting I have for less is S (LESS=S).
>|
>| Any ideas why I am unable to view a report I send to less.
>
>Wouldn't:
>
>   printer27=ViaFile,nocodes,| less,View report
>
>work, and be simpler?
>
>Bob

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.

*******************************************************************************
* 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