Progress
External Program
Interfaces


UNIX Named Pipes

This chapter provides information to get you started using named pipes with Progress on a UNIX system. You can find more information on UNIX named pipes in any of the books on advanced UNIX programming available in the public domain.

To use UNIX named pipes with Progress, follow these steps:

  1. Create the named pipes using the UNIX mknod command in the command line or the mknod() system call from within C.
  2. Start a Progress session in the background (Progress batch mode) running a message handler procedure. The message handler procedure runs indefinitely, searching for input from one named pipe, running requests, and shipping output through a second named pipe. (You must supply the message handler procedure. For a sample message handler procedure, see the "UNIX Named Pipe Examples" section.)
  3. Run your non-Progress application. From within the application, issue messages through the first named pipe in Step 1 to the background Progress session, and receive replies through the second named pipe.

Once you create a named pipe, you can access it as if it were a text file. Thus, the only requirement for a non-Progress application to communicate with Progress via named pipes is that the application be able to write to and read from text files. Also, it is helpful for the application to have facilities for processing returned results (for example, string handling functions, buffers, etc.).

The following sections describe how to:

NOTE: Named pipes might be implemented on your system differently than described below.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095