run_child_process

On this page
  1. wakterm.run_child_process(args)

wakterm.run_child_process(args)#

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 wakterm = require 'wakterm'

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

See also background_child_process

Edit this page