Reading from Standard In/Writing to Standard Out? (on Solaris)

Bob Stockler bob at trebor.iglou.com
Wed May 12 08:47:02 PDT 2004


On Wed, May 12, 2004 at 10:52:01AM -0400, Tim Fischer wrote:
| 
| Ok, we've got an answer!! - Well, almost...
| 
| What we're doing is using the USER command and writing to an intermediary
| script - basically, it's exactly what I was trying to do in the first place
| - I've probably got to learn to word myself better.  :)
| 
| Anyway, now, my dilemma is that I can't close the user command.  In other
| words - I'm writing 139 fields (to test - I'll actually be running live with
| 499 fields) to a text file (again, to test - I'll be running this to a
| script eventually).  However, the text file isn't being created (the user
| command isn't closing) until I close my rclerk session.  (I'm doing this
| @key| right now).
| 
| Does anyone know how I can force the USER command to close?  The
| documentation doesn't show anything.

You may not want to close the USER command.

In many of my uses of the USER command I have it connect with its
2-way pipe to a shell script in the format of:

  while read stuff
  do if [ "$stuff" = "EOF" ]
     then # do what I want when through with the current project
     fi
     # do something with $stuff
     echo "something or other"   # send something back to USER
  done

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