exec

abstract fun exec(command: Value, options: Value?, callback: Value?): ChildProcess

Exec

Guest-side implementation of Node's exec method, which is used to execute commands via child processes using a shell.

Return

Child process handle which was spawned using the provided command, args, and options inputs.

Parameters

command

Command to execute.

options

Options for the process execution, or null (undefined in JavaScript).

callback

Callback to invoke when the process completes.