getenv - unix - fp 5.0.13

Bob Stockler bob at trebor.iglou.com
Tue Mar 9 17:13:20 PST 2004


On Tue, Mar 09, 2004 at 04:29:54PM -0500, Jean-Pierre A. Radley wrote:
| 
| Try filePro's USER command instead:
| Off the top of my head (meaning "not tested"):
| 
| 	::uu="/usr/vsifax/bin/flog -a"<2:
| 	::user getflog=uu:
| 	::aa(30,allup)=getflog:

This was recently discussed on the filePro Mailing List.

The USER command requires:

  Then: USER alias = /hard/coded/non-variable/argument-of/program-name
  Then: alias      = "query sent to USER program"
  Then: ANSWER     = alias ; declare ANSWER

where "alias" is like any other alias, given to a LOOKUP or
whatever; "query sent to USER program" may be a string literal
or a dummy or real field or any compination of them; and ANSWER
is a variable to receive the reply from the USER program.

The "Then: USER" line should be encountered only once by the
processing, but a loop may (or may not) surround the other two
lines to continue to query the user program (if it is itself
capable of continuing, reading its standard input, and responding).

Bob

PS - I think the USER command is one of the most underused features
     of filePro.  I have programs that use filePro file i/o that
     write shell scripts on the fly to be called by USER.

     Too bad it's not available on Windows, though now I think that
     broken-since-birth OS might be able to support it - if fPtech
     saw fit to implement it (one uninformed person's opinion).

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