Skip to content


Since: Version 20200503-171512-b13ef15f

The functionality described in this section requires version 20200503-171512-b13ef15f of wezterm, or a more recent version.

This function accepts an argument list; it will attempt to spawn that command and will return a tuple consisting of the boolean success of the invocation, the stdout data and the stderr data.

local wezterm = require 'wezterm'

local success, stdout, stderr = wezterm.run_child_process { 'ls', '-l' }

See also background_child_process