Next: Networking, Previous: Terminals and Ptys, Up: POSIX
The following procedures provide an interface to the popen and
pclose system routines. The code is in a separate "popen"
module:
(use-modules (ice-9 popen))
Execute 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_READorOPEN_WRITE.
Close the pipe created by
open-pipe, then waits for the process to terminate and returns its status value, See waitpid, for information on how to interpret this value.