Consultor Eletrônico



Kbase P97790: 4GL code example for reading or writing data using Named Pipes
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

how to read or write data using named pipes in 4GL

GOAL:

how to read from a named pipe in 4GL

GOAL:

how to write to a named pipe in 4GL

FACT(s) (Environment):

Linux Intel

FIX:

The 4GL code is the following:
/* writer */
DEF VAR myVar as CHAR.
ASSIGN myVar = 'example'.
OUTPUT TO mypipe APPEND.
EXPORT myVar.
OUTPUT CLOSE.


/* reader */
DEF VAR myVar as CHAR.
INPUT FROM mypipe.
IMPORT myVar.
MESSAGE myVar.
INPUT CLOSE.