Using less to view output

Bob Stockler bob at trebor.iglou.com
Sat May 14 09:36:49 PDT 2005


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

-- 
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


More information about the Filepro-list mailing list