Liking cljdoc? Tell your friends :D

crusta.core


execclj

(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
sourceraw docstring

exit-codeclj

(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.
sourceraw docstring

killclj

(kill process)

Kills the process referenced by 'process'

Kills the process referenced by 'process'
sourceraw docstring

runclj

(run command
     &
     {:keys [environment clear-environment directory redirect-stderr]
      :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
sourceraw docstring

stderr-seqclj

(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.
sourceraw docstring

stderr-streamclj

(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.
sourceraw docstring

stdin-streamclj

(stdin-stream process)

Returns an OutputStream connected to the stdin of 'process'

Returns an OutputStream connected to the stdin of 'process'
sourceraw docstring

stdout-seqclj

(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'
sourceraw docstring

stdout-streamclj

(stdout-stream process)

Returns an InputStream containing the contents of stdout for 'process'

Returns an InputStream containing the contents of stdout for 'process'
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close