FRENDS⁴ Common Components : Frends.Common.Execute.ExecuteProcess.ExecuteProcessWithResult

This task executes a given process with the given parameters and returns the result of the execution.

Input Parameters

Parameter nameDescriptionData typeExample values
Script path

The path to the script or process that is to be executed.

Server variables can also be used for example "cmd" is valid for most servers

String"cmd"
Arguments

An array of argument names and values that are passed to the executable script or process.

The arguments have following parameters:

Parameter nameDescriptionData typeExample
NameName of the argumentString "/C"
ValueValue of the argumentString  "nslookup google.com"
Object collection 
TimeoutMS

The timeout of the script or process execution in milliseconds. If the process doesn't finish in the given time, an exception will be thrown.

Integer10000

Output Result

  • String
    • Returns the returnvalue of the process or execution.

Error results

The task will return an exception External process execution failed with returncode: ExitCode and output: OutPut. if the process failed and exited with returncode 0.

The task will return an exception External process execution timed out after TimeOut milliseconds. if the process execution timed out before recieving a response or returncode.

Example Usage

ScriptPath: "cmd"

Arguments:  

  • Argument 1

Results:

External process execution was successful with output: 
Server:  UnKnown
Address:  100.86.54.170

Name:    google.com
Addresses:  2a00:1450:400b:802::200e
	  216.58.198.78