child_process
helper manages the child processes' lifecycle.shutdown
s it.child_process_execute(title, sub_process_name, arguments: nil, subprocess_name: nil, interval: nil, immediate: false, parallel: false, mode: [:read, :write], stderr: :discard, env: {}, unsetenv: false, chdir: nil, internal_encoding: 'utf-8', external_encoding: 'ascii-8bit', scrub: true, replace_string: nil, wait_timeout: nil, on_exit_callback: nil, &block)
child_process
with the given parameters and routine.title
: unique symbol valuesub_process_name
: sub process name valueinterval
: Second unit integer
/float
value.immediate
: true
/false
. Default is false
.parallel
: true
/false
. Default is false
.mode
: [:read
, :write
]. Default is [:read
, :write
].stderr
: Connect stderr or not. Default is :discard
.env
: Environment valuables. Default is {}.unsetenv
: true
/false
. Default is false
chdir
: Working directory. Default is nil
.internal_encoding
: Internal character encoding. Default is utf-8
.external_encoding
: External character encoding. Default is ascii-8bit
'scrub
: true
/false
. Default is true
.replace_string
: Replace the invalid code point with the specified character.nil
.wait_timeout
: Set timeout seconds. Default is nil
.on_exit_callback
: Set callback function. Default is nil
child_process