(exec command
&
{:keys [environment clear-environment directory redirect-stderr]})
Executes the 'command' represented as a string or a sequence of strings in a separate process and returns a reference to the process.
Additional keyword parameters can be used to control the behaviour: :environment - A hash map of the variables and their values to be merged into the existing environment :clear-environment - A boolean indicating whether the existing environment should be cleared. If combined with the :environment option above, the resulting environment will only contain the variables provided in the :environment parameter :directory - The working directory for the process :redirect-stderr - Redirects stderr into stdout
Executes the 'command' represented as a string or a sequence of strings in a separate process and returns a reference to the process. Additional keyword parameters can be used to control the behaviour: :environment - A hash map of the variables and their values to be merged into the existing environment :clear-environment - A boolean indicating whether the existing environment should be cleared. If combined with the :environment option above, the resulting environment will only contain the variables provided in the :environment parameter :directory - The working directory for the process :redirect-stderr - Redirects stderr into stdout
(exit-code process & {:keys [timeout]})
Returns the exit code for 'process'. If the process has not exited, the call will block until the process exits. An optional :timeout in ms can be supplied to prevent blocking forever. ':timeout' will be returned if the timeout expires before the process exits.
Returns the exit code for 'process'. If the process has not exited, the call will block until the process exits. An optional :timeout in ms can be supplied to prevent blocking forever. ':timeout' will be returned if the timeout expires before the process exits.
(kill process-or-pipe)
Kills the process or pipe referenced by 'process-or-pipe'
Kills the process or pipe referenced by 'process-or-pipe'
(pipe & processes)
Executes a series of 'processes' piping the stdout from one process into the stdin for the next. The stdin for the first process and the stdout for the last process are exposed. Processes are created with 'exec'
Executes a series of 'processes' piping the stdout from one process into the stdin for the next. The stdin for the first process and the stdout for the last process are exposed. Processes are created with 'exec'
(run command & {:as options})
Executes the 'command' represented as a string or a sequence of strings in a separate process and returns the contents of stdout when the process completes. If the process terminates abnormally, an exception is thrown with the contents of stderr.
Additional keyword parameters can be used to control the behaviour: :environment - A hash map of the variables and their values to be merged into the existing environment :clear-environment - A boolean indicating whether the existing environment should be cleared. If combined with the :environment option above, the resulting environment will only contain the variables provided in the :environment parameter :directory - The working directory for the process :redirect-stderr - Redirects stderr into stdout
Executes the 'command' represented as a string or a sequence of strings in a separate process and returns the contents of stdout when the process completes. If the process terminates abnormally, an exception is thrown with the contents of stderr. Additional keyword parameters can be used to control the behaviour: :environment - A hash map of the variables and their values to be merged into the existing environment :clear-environment - A boolean indicating whether the existing environment should be cleared. If combined with the :environment option above, the resulting environment will only contain the variables provided in the :environment parameter :directory - The working directory for the process :redirect-stderr - Redirects stderr into stdout
(stderr-seq process)
Returns a lazy sequence containing the lines of text in stderr for 'process'. A nil will be returned if :redirect-stderr was passed to 'exec' when launching the process.
Returns a lazy sequence containing the lines of text in stderr for 'process'. A nil will be returned if :redirect-stderr was passed to 'exec' when launching the process.
(stderr-stream process)
Returns an InputStream containing the contents of stderr for 'process'. A nil will be returned if :redirect-stderr was passed to 'exec' when launching the process.
Returns an InputStream containing the contents of stderr for 'process'. A nil will be returned if :redirect-stderr was passed to 'exec' when launching the process.
(stdin-stream process)
Returns an OutputStream connected to the stdin of 'process'
Returns an OutputStream connected to the stdin of 'process'
(stdout-seq process)
Returns a lazy sequence containing the lines of text in stdout for 'process'
Returns a lazy sequence containing the lines of text in stdout for 'process'
(stdout-stream process)
Returns an InputStream containing the contents of stdout for 'process'
Returns an InputStream containing the contents of stdout for 'process'
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close