Skip to content

Core\Process

Runs other programs. A program is started directly with a list of arguments, never through a shell, so an argument cannot add a second command. run waits for the program to end, and spawn returns a handle while it runs. Both need the process.exec capability.

Members

2 members.

MemberSignature
runrun(string $path, array<string> $argv, { workingDirectory?: string, env?: array<string>, timeout?: Core\Time\Duration }): Core\Process\Result
spawnspawn(string $path, array<string> $argv, { workingDirectory?: string, env?: array<string>, timeout?: Core\Time\Duration }): Core\Process\Handle