Next: , Previous: , Up: Creating Synchronous Subprocesses   [Index]


I.1.2.6 process-lines

Function: process-lines program &rest args

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.