crow/io/process.crow
(source)
process-result
record
exit
process-exit
stdout
string
stderr
string
Represents the output of running a process.
process-exit
union
has-error
bool
(a
process-result
)
spawn-and-wait-result
process-result
(exe
string
, args
string
array
) summon
Launches a process and synchronously waits on the result.
The child process' stdout and stderr will be sent to the process-result
,
not to the parent's stdout and stderr.
EXE should be a file path and not just a name; this does not search the system path for exe
.
spawn-and-wait
process-exit
(exe
string
, args
string
array
) summon
Launches a process and synchronously waits on the result.
The child process shares stdout and stderr with the parent process.
shell-exec
string
(command
string
) summon
Executes a shell command and returns its output.