Start an external process for bidirectional communication.
The command to be executed in the separate process
The following example uses an external program sort (we assume
it writes a sorted copy of what it reads) to display a sorted list
of the content of set ToSort:
forall(i in ToSort)
while(not iseof) do
Pipes required by this procedure are created using
driver of this module (see
Section Driver pipe
As a consequence, the string provided as argument must be suitable
for the driver (i.e.
a program name followed by its options
separated by spaces).
This procedure opens both an input and output streams that must
be closed explicitly using fclose. Note that the
output stream must be closed first otherwise the program
may lock up.
If you have any comments or suggestions about these pages,
please send mail to firstname.lastname@example.org.
© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.