Wait until the program identified by pid exits and return it’s exit status
pid = spawn("ls", {"-lhF","."}); status = spawn_wait(pid);
Package: mboct-octave-pkg