Interface ExecOptions

Hierarchy

  • ExecOptions

Properties

block?: boolean

Boolean (default = true). If true, wait until the process is terminated. In this case, exec return the exit code if positive or the negated signal number if the process was interrupted by a signal. If false, do not block and return the process id of the child.

cwd?: string

String. If present, set the working directory of the new process.

env?: {
    [key: string]: string;
}

Object. If present, set the process environment from the object key-value pairs. Otherwise use the same environment as the current process.

Type declaration

  • [key: string]: string
file?: string

String (default = args[0]). Set the file to be executed.

gid?: number

Integer. If present, the process gid with setgid.

If present, set the handle in the child for stdin, stdout or stderr.

If present, set the handle in the child for stdin, stdout or stderr.

If present, set the handle in the child for stdin, stdout or stderr.

uid?: number

Integer. If present, the process uid with setuid.

usePath?: boolean

Boolean (default = true). If true, the file is searched in the PATH environment variable.

Generated using TypeDoc