std.ps.exec_simple

std.ps

exec_simple(cmd, nowait) -> result

Execute a shell command and capture its output

Runs a command string, captures stdout and stderr as arrays of lines, and returns a table with status, stdout, and stderr fields. When nowait is true, uses non-blocking wait.