Returns the stream created when the output argument to START
is specified as :STREAM
.
T
if object is a process, NIL
otherwise.
Returns the stream created when the input argument to START
is specified as :STREAM
.
Runs the specified program similarly to START
, however it blocks and returns the external process status once the program exits.
:STREAM
is not a valid argument to INPUT
, OUTPUT
, or ERROR
for this function.
Runs the specified program in an external (Unix) process, returning a process object if successful.
INPUT
, OUTPUT
, and ERROR
all behave similarly, accepting one of the following values:
NIL
Specifies that a null stream (e.g., /dev/null
) should be used.
T
Specifies that the EXTERNAL-PROCESS
should use the source or destination with which the Lisp was invoked.
EXTERNAL-PROCESS
;
EXTERNAL-PROCESS
should use the named existing file.
:STREAM
Creates a Lisp stream opened for character output. Any data written to this stream (accessible via the EXTERNAL-PROCESS-*-STREAM
functions) appears as input to the external process.
:OUTPUT
(only available for ERROR
) directs the error output to the same destination as the standard output.
Returns the stream created when the error argument to START
is specified as :STREAM
.
Returns, as multiple values, a keyword denoting the status of the external process (one of :running
, :stopped
, :signaled
, or :exited
), and the exit code or terminating signal if the first value is other than :running
.
Returns the process id assigned to the external process by the operating system. This is typically a positive, 16-bit number.
Sends the specified unix signal to the specified external process. Signals an error if unsuccessful. The signal may be either an integer, or one of the keywords in EXTERNAL-PROGRAM::*SIGNAL-MAPPING*