Next: process-file, Previous: shell-command-to-string, Up: Creating Synchronous Subprocesses [Index]
This function runs PROGRAM, waits for it to finish, and returns its output as a list of strings. Each string in the list holds a single line of text output by the program; the end-of-line characters are stripped from each line.
The arguments beyond PROGRAM, ARGS, are strings that specify command-line arguments with which to run the program.
This function works by calling call-process
, so program output is decoded in
the same way as for call-process
.