nodejsscript • Docs
nodejsscript / s / ExecFunction
ExecFunction(
command
):ShellString
Executes the given command synchronously.
• command: string
The command to execute.
Returns an object containing the return code and output as string.
ExecFunction(
command
,options
):ShellString
Executes the given command synchronously.
• command: string
The command to execute.
• options: ExecOptions
& object
Silence and synchronous options.
Returns an object containing the return code and output as string,
or if {async: true}
was passed, a ChildProcess
.
ExecFunction(
command
,options
):ChildProcess
Executes the given command asynchronously.
• command: string
The command to execute.
• options: ExecOptions
& object
Silence and synchronous options.
Returns an object containing the return code and output as string,
or if {async: true}
was passed, a ChildProcess
.
ExecFunction(
command
,options
):ChildProcess
|ShellString
Executes the given command.
• command: string
The command to execute.
• options: ExecOptions
Silence and synchronous options.
Returns an object containing the return code and output as string,
or if {async: true}
was passed, a ChildProcess
.
ExecFunction(
command
,options
,callback
):ChildProcess
Executes the given command synchronously.
• command: string
The command to execute.
• options: ExecOptions
Silence and synchronous options.
• callback: ExecCallback
Receives code and output asynchronously.
ExecFunction(
command
,callback
):ChildProcess
Executes the given command synchronously.
• command: string
The command to execute.
• callback: ExecCallback
Receives code and output asynchronously.