Go to the first, previous, next, last section, table of contents.


Pipes

These procedures provide an interface to the popen and pclose system routines.

primitive: open-pipe command modes
Executes the shell command command (a string) in a subprocess. A pipe to the process is created and returned. modes specifies whether an input or output pipe to the process is created: it should be the value of OPEN_READ or OPEN_WRITE.

procedure: open-input-pipe command
Equivalent to (open-pipe command OPEN_READ).

procedure: open-output-pipe command
Equivalent to (open-pipe command OPEN_WRITE).

primitive: close-pipe port
Closes the pipe created by open-pipe, then waits for the process to terminate and returns its status value, See section Processes, for information on how to interpret this value.

close-port (see section Closing Ports) can also be used to close a pipe, but doesn't return the status.


Go to the first, previous, next, last section, table of contents.