chickadee » tcl-expect » call-with-process-io

call-with-process-io cmd procprocedure

Forks a new process and executes cmd via Bourne shell then call proc which should be a procedure of three arguments: the input, output, and PID of the sub-process.

Note: The input and output ports will not be closed if proc raises an error

While it is possible to use read-line to read information from a process spawned by call-with-process-io, more convenient function are provided.