Skip to content

Latest commit

 

History

History
242 lines (126 loc) · 4.86 KB

File metadata and controls

242 lines (126 loc) · 4.86 KB

nodejsscriptDocs


nodejsscript / s / exec

Function: exec()

Executes the given command.

Param

The command to execute.

Param

Silence and synchronous options.

Param

Receives code and output asynchronously.

exec(command)

exec(command): ShellString

Executes the given command synchronously.

Parameters

command: string

The command to execute.

Returns

ShellString

Returns an object containing the return code and output as string, or if {async: true} or a callback was passed, a ChildProcess.

Returns an object containing the return code and output as string.

Param

The command to execute.

Param

Silence and synchronous options.

Param

Receives code and output asynchronously.

exec(command, options)

exec(command, options): ShellString

Executes the given command synchronously.

Parameters

command: string

The command to execute.

options: ExecOptions & object

Silence and synchronous options.

Returns

ShellString

Returns an object containing the return code and output as string, or if {async: true} or a callback was passed, a ChildProcess.

Returns an object containing the return code and output as string, or if {async: true} was passed, a ChildProcess.

Param

The command to execute.

Param

Silence and synchronous options.

Param

Receives code and output asynchronously.

exec(command, options)

exec(command, options): ChildProcess

Executes the given command asynchronously.

Parameters

command: string

The command to execute.

options: ExecOptions & object

Silence and synchronous options.

Returns

ChildProcess

Returns an object containing the return code and output as string, or if {async: true} or a callback was passed, a ChildProcess.

Returns an object containing the return code and output as string, or if {async: true} was passed, a ChildProcess.

Param

The command to execute.

Param

Silence and synchronous options.

Param

Receives code and output asynchronously.

exec(command, options)

exec(command, options): ChildProcess | ShellString

Executes the given command.

Parameters

command: string

The command to execute.

options: ExecOptions

Silence and synchronous options.

Returns

ChildProcess | ShellString

Returns an object containing the return code and output as string, or if {async: true} or a callback was passed, a ChildProcess.

Returns an object containing the return code and output as string, or if {async: true} was passed, a ChildProcess.

Param

The command to execute.

Param

Silence and synchronous options.

Param

Receives code and output asynchronously.

exec(command, options, callback)

exec(command, options, callback): ChildProcess

Executes the given command synchronously.

Parameters

command: string

The command to execute.

options: ExecOptions

Silence and synchronous options.

callback: ExecCallback

Receives code and output asynchronously.

Returns

ChildProcess

Returns an object containing the return code and output as string, or if {async: true} or a callback was passed, a ChildProcess.

Param

The command to execute.

Param

Silence and synchronous options.

Param

Receives code and output asynchronously.

exec(command, callback)

exec(command, callback): ChildProcess

Executes the given command synchronously.

Parameters

command: string

The command to execute.

callback: ExecCallback

Receives code and output asynchronously.

Returns

ChildProcess

Returns an object containing the return code and output as string, or if {async: true} or a callback was passed, a ChildProcess.

Param

The command to execute.

Param

Silence and synchronous options.

Param

Receives code and output asynchronously.