Liking cljdoc? Tell your friends :D

libmisc-clj.execute

Library for shelling out from Clojure.

Library for shelling out from Clojure.
raw docstring

->>procclj

(->>proc process from & {flush? :flush :or {flush? true} :as all})

Feed to a process's input stream with optional. Options passed are fed to clojure.java.io/copy. They are :encoding to set the encoding and :buffer-size to set the size of the buffer. :encoding defaults to UTF-8 and :buffer-size to 1024. If :flush is specified and is false, the process will be flushed after writing.

Feed to a process's input stream with optional. Options passed are
fed to clojure.java.io/copy. They are :encoding to set the encoding
and :buffer-size to set the size of the buffer. :encoding defaults to
UTF-8 and :buffer-size to 1024. If :flush is specified and is false,
the process will be flushed after writing.
sourceraw docstring

arenaclj

(arena)
source

close-stdinclj

(close-stdin proc)

Close the process's output stream (sending EOF).

Close the process's output stream (sending EOF).
sourceraw docstring

destroyclj

(destroy process)

Destroy a process.

Destroy a process.
sourceraw docstring

flush-stdinclj

(flush-stdin process)

Flush the output stream of a process.

Flush the output stream of a process.
sourceraw docstring

line<<-procclj

(line<<-proc process ch)

Read a line from a process' :out or :err.

Read a line from a process' :out or :err.
sourceraw docstring

pExecutorcljprotocol

execclj

(exec p r)
(exec p r callback id)

execute Runnable at thread asynchronously

execute Runnable at thread asynchronously

selfclj

(self p)

return the pool object

return the pool object

stopclj

(stop p)

shutdown the pool

shutdown the pool
source

procclj

(proc & args)

Spin off another process. Returns the process's input stream, output stream, and err stream as a map of :in, :out, and :err keys If passed the optional :dir and/or :env keyword options, the dir and enviroment will be set to what you specify. If you pass :verbose and it is true, commands will be printed. If it is set to :very, environment variables passed, dir, and the command will be printed. If passed the :clear-env keyword option, then the process will not inherit its environment from its parent process.

Spin off another process. Returns the process's input stream,
output stream, and err stream as a map of :in, :out, and :err keys
If passed the optional :dir and/or :env keyword options, the dir
and enviroment will be set to what you specify. If you pass
:verbose and it is true, commands will be printed. If it is set to
:very, environment variables passed, dir, and the command will be
printed. If passed the :clear-env keyword option, then the process
will not inherit its environment from its parent process.
sourceraw docstring

proc->>clj

(proc->> process from to & args)

Stream :out or :err from a process to an ouput stream. Options passed are fed to clojure.java.io/copy. They are :encoding to set the encoding and :buffer-size to set the size of the buffer. :encoding defaults to UTF-8 and :buffer-size to 1024.

Stream :out or :err from a process to an ouput stream.
Options passed are fed to clojure.java.io/copy. They are :encoding to
set the encoding and :buffer-size to set the size of the buffer.
:encoding defaults to UTF-8 and :buffer-size to 1024.
sourceraw docstring

proc->>stdoutclj

(proc->>stdout process ch & args)

Streams the output of the process to System/out

Streams the output of the process to System/out
sourceraw docstring

proc->>strclj

(proc->>str process ch & args)

Streams the output of the process to a string and returns it.

Streams the output of the process to a string and returns it.
sourceraw docstring

string->>procclj

(string->>proc process s & args)

Feed the process some data from a string.

Feed the process some data from a string.
sourceraw docstring

wait-forclj

(wait-for process)
(wait-for process timeout)

Waits for the process to terminate (blocking the thread) and returns the exit code. If timeout is passed, it is assumed to be milliseconds to wait for the process to exit. If it does not exit in time, it is killed (with or without fire).

Waits for the process to terminate (blocking the thread) and returns
the exit code. If timeout is passed, it is assumed to be milliseconds
to wait for the process to exit. If it does not exit in time, it is
killed (with or without fire).
sourceraw docstring

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

× close