logo

class

sys::Process

sys::Obj
  sys::Process

Process manages spawning external OS processes.

TODO: currently this API provides the bare necessities, need to add:

  • async management
  • stdin, stdout, stderr management
  • env variables
  • working directory

Slots

command

Str[] command

Command list used to launch process.

dir

File dir

Working directory of process.

make

new make(Str[] cmd, File dir := def)

Construct a Process instanced used to launch an external OS process with the specified command arguments.

run

Int run()

Run this process and wait until it completes. Return the exit code of the process.