Result of a command execution containing output and status information.
ExecutionResult
const result = await executor.execute('./solution', { timeout: 1000 });if (result.success) { console.log(result.stdout);} Copy
const result = await executor.execute('./solution', { timeout: 1000 });if (result.success) { console.log(result.stdout);}
Standard output from the process
Standard error from the process
Process exit code (0 = success)
Whether execution was successful
Optional
Whether process exceeded time limit
Whether process exceeded memory limit
Result of a command execution containing output and status information.
ExecutionResult
Example