Function: mh-exec-cmd-env-daemon

mh-exec-cmd-env-daemon is a byte-compiled function defined in mh-e.el.gz.

Signature

(mh-exec-cmd-env-daemon ENV COMMAND FILTER &rest ARGS)

Documentation

In environment ENV, execute mh-command COMMAND in the background.

ENV is nil or a string of space-separated "var=value" elements. Signals an error if process does not complete successfully.

If FILTER is non-nil then it is used to process the output otherwise the default filter mh-process-daemon is used. See set-process-filter for more details of FILTER.

ARGS are passed to COMMAND as command line arguments.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-e.el.gz
(defun mh-exec-cmd-env-daemon (env command filter &rest args)
  "In environment ENV, execute mh-command COMMAND in the background.

ENV is nil or a string of space-separated \"var=value\" elements.
Signals an error if process does not complete successfully.

If FILTER is non-nil then it is used to process the output
otherwise the default filter `mh-process-daemon' is used. See
`set-process-filter' for more details of FILTER.

ARGS are passed to COMMAND as command line arguments."
  (let ((process-environment process-environment))
    (dolist (elem (if (stringp env) (split-string env " ") ()))
      (push elem process-environment))
    (apply #'mh-exec-cmd-daemon command filter args)))