Mercurial > emacs
comparison lispref/processes.texi @ 7411:266b18250120
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 08 May 1994 22:24:11 +0000 |
parents | 9a9e88e65617 |
children | 7db892210924 |
comparison
equal
deleted
inserted
replaced
7410:4eca60cb3c4d | 7411:266b18250120 |
---|---|
33 @end defun | 33 @end defun |
34 | 34 |
35 @menu | 35 @menu |
36 * Subprocess Creation:: Functions that start subprocesses. | 36 * Subprocess Creation:: Functions that start subprocesses. |
37 * Synchronous Processes:: Details of using synchronous subprocesses. | 37 * Synchronous Processes:: Details of using synchronous subprocesses. |
38 * MS-DOS Subprocesses:: On MS-DOS, you must indicate text vs binary | |
39 for data sent to and from a subprocess. | |
38 * Asynchronous Processes:: Starting up an asynchronous subprocess. | 40 * Asynchronous Processes:: Starting up an asynchronous subprocess. |
39 * Deleting Processes:: Eliminating an asynchronous subprocess. | 41 * Deleting Processes:: Eliminating an asynchronous subprocess. |
40 * Process Information:: Accessing run-status and other attributes. | 42 * Process Information:: Accessing run-status and other attributes. |
41 * Input to Processes:: Sending input to an asynchronous subprocess. | 43 * Input to Processes:: Sending input to an asynchronous subprocess. |
42 * Signals to Processes:: Stopping, continuing or interrupting | 44 * Signals to Processes:: Stopping, continuing or interrupting |
78 | 80 |
79 Each of the subprocess-creating functions has a @var{buffer-or-name} | 81 Each of the subprocess-creating functions has a @var{buffer-or-name} |
80 argument which specifies where the standard output from the program will | 82 argument which specifies where the standard output from the program will |
81 go. If @var{buffer-or-name} is @code{nil}, that says to discard the | 83 go. If @var{buffer-or-name} is @code{nil}, that says to discard the |
82 output unless a filter function handles it. (@xref{Filter Functions}, | 84 output unless a filter function handles it. (@xref{Filter Functions}, |
83 and @ref{Streams, Reading and Printing}.) Normally, you should avoid | 85 and @ref{Read and Print}.) Normally, you should avoid having multiple |
84 having multiple processes send output to the same buffer because their | 86 processes send output to the same buffer because their output would be |
85 output would be intermixed randomly. | 87 intermixed randomly. |
86 | 88 |
87 @cindex program arguments | 89 @cindex program arguments |
88 All three of the subprocess-creating functions have a @code{&rest} | 90 All three of the subprocess-creating functions have a @code{&rest} |
89 argument, @var{args}. The @var{args} must all be strings, and they are | 91 argument, @var{args}. The @var{args} must all be strings, and they are |
90 supplied to @var{program} as separate command line arguments. Wildcard | 92 supplied to @var{program} as separate command line arguments. Wildcard |
272 nil ; @r{No redisplay during output.} | 274 nil ; @r{No redisplay during output.} |
273 "-c" command) ; @r{Arguments for the shell.} | 275 "-c" command) ; @r{Arguments for the shell.} |
274 @end group | 276 @end group |
275 @end smallexample | 277 @end smallexample |
276 @end defun | 278 @end defun |
279 | |
280 @node MS-DOS Subprocesses | |
281 @section MS-DOS Subprocesses | |
282 | |
283 On MS-DOS, you must indicate whether the data going to and from | |
284 a synchronous subprocess are text or binary. Text data requires | |
285 translation between the end-of-line convention used within Emacs | |
286 (a single newline character) and the convention used outside Emacs | |
287 (the two-character sequence, CRLF). | |
288 | |
289 The variable @code{binary-process-input} applies to input sent to the | |
290 subprocess, and @code{binary-process-output} applies to output received | |
291 from it. A non-@code{nil} value means the data is non-text; @code{nil} | |
292 means the data is text, and calls for conversion. | |
293 | |
294 @defvar binary-process-input | |
295 If this variable is @code{nil}, convert newlines to CRLF sequences in | |
296 the input to a synchronous subprocess. | |
297 @end defvar | |
298 | |
299 @defvar binary-process-output | |
300 If this variable is @code{nil}, convert CRLF sequences to newlines in | |
301 the output from a synchronous subprocess. | |
302 @end defvar | |
303 | |
304 @xref{Files and MS-DOS}, for related information. | |
277 | 305 |
278 @node Asynchronous Processes | 306 @node Asynchronous Processes |
279 @section Creating an Asynchronous Process | 307 @section Creating an Asynchronous Process |
280 @cindex asynchronous subprocess | 308 @cindex asynchronous subprocess |
281 | 309 |