std.ps.launch

std.ps

launch(cmd, stdin, stdout, stderr, ...) -> pid, err

Fork and execute a command with optional I/O redirection

Forks a child process and executes cmd with optional I/O redirection via raw file descriptors. cmd can also be a table with func, name, and extra fields to execute a Lua function in a child process.