Interface Process
interface Process {
args: string[];
code?: number;
command: string;
cwd: string;
entry: (params: ProcessEntryParams) => Promise<undefined | number | void>;
events: any;
gid: number;
kernel: Kernel;
parent?: number;
pid: number;
shell: Shell;
status: ProcessStatus;
stderr: WritableStream<Uint8Array>;
stdin: ReadableStream<Uint8Array>;
stdout: WritableStream<Uint8Array>;
terminal: Terminal;
uid: number;
cleanup(): Promise<void>;
exit(exitCode?: number): Promise<void>;
pause(): void;
restart(): void;
resume(): void;
start(): Promise<number>;
stop(exitCode?: number): Promise<void>;
}
args: string[];
code?: number;
command: string;
cwd: string;
entry: (params: ProcessEntryParams) => Promise<undefined | number | void>;
events: any;
gid: number;
kernel: Kernel;
parent?: number;
pid: number;
shell: Shell;
status: ProcessStatus;
stderr: WritableStream<Uint8Array>;
stdin: ReadableStream<Uint8Array>;
stdout: WritableStream<Uint8Array>;
terminal: Terminal;
uid: number;
cleanup(): Promise<void>;
exit(exitCode?: number): Promise<void>;
pause(): void;
restart(): void;
resume(): void;
start(): Promise<number>;
stop(exitCode?: number): Promise<void>;
}
Properties
Readonly
args
args: string[]
Get command line arguments
Optional
Readonly
code
code?: number
Get exit code
Readonly
command
command: string
Get command name
Readonly
cwd
cwd: string
Get working directory
Readonly
entry
Get process entry point
Readonly
events
events: any
Get event emitter
Readonly
gid
gid: number
Get group ID
Readonly
kernel
Get kernel instance
Optional
parent
parent?: number
Get/set parent process ID
Readonly
pid
pid: number
Get process ID
Readonly
shell
Get shell instance
Readonly
status
Get process status
Readonly
stderr
Get standard error stream
Readonly
stdin
Get standard input stream
Readonly
stdout
Get standard output stream
Readonly
terminal
Get terminal instance
Readonly
uid
uid: number
Get user ID
Interface for process functionality