CheerpXApp#run

Run a command

class CheerpXApp {
async run(
fileName: string, // Path to executable
args: string[],
options?: {
env?: string[]; // Environment variables in the form "KEY=VALUE"
cwd?: string; // Working directory
uid?: number; // User ID
gid?: number; // Group ID
},
): Promise<number>;
}

Returns

Once the process exits, resolves with its exit code.

Was this page helpful?
Suggest changes