Run a subprocess. Returns (exit_code, stdout, stderr, ok). ok is false if the process could not be launched. stdout and stderr are captured. POSIX only.
import @os
domain() {
mut code, stdout, stderr, ok = os.exec("ls", {"-l", "/tmp"})
os provides the Platform enum for the mutually-exclusive host-OS values.
Reachable as os.MAC_OS or Platform.MAC_OS (both denote the same value);
returned by current_os(). Underlying values: MAC_OS 0, LINUX 1,
WINDOWS 2, OTHER 3. Platform is reserved as a type name only while @os
is imported.