com.tle.common.scripting.objects
Interface SystemScriptObject
Declaration: public interface SystemScriptObject

 

Referenced by the 'system' variable in script.

 

 

Fields Summary
static java.lang.String DEFAULT_VARIABLE
    

 

 

Methods Summary
abstract ExecutionResultScriptType execute(java.lang.String programPath, java.lang.Object[] parameters)
    
Executes a program and retrieves the console output as well as any error codes returned by the program.
abstract void executeInBackground(java.lang.String programPath, java.lang.Object[] parameters)
    
Executes a program without waiting for it finish.

 

 

 

 

DEFAULT_VARIABLE

 

public static final java.lang.String DEFAULT_VARIABLE

 

See also: Constants

 

 

 

 

executeInBackground

 

public abstract void executeInBackground( java.lang.String programPath,
java.lang.Object[] parameters)

 

Executes a program without waiting for it finish. There is no indication of when the program completes or if it was successful.

 

Parameters:
programPath-
The full path to an executable program or script.
parameters-
An array of command line parameters to send to the executable program at programPath. The parameters can contain String, AttachmentScriptType and FileHandleScriptType objects.

 

 

 

execute

 

public abstract ExecutionResultScriptType execute( java.lang.String programPath,
java.lang.Object[] parameters)

 

Executes a program and retrieves the console output as well as any error codes returned by the program.

 

Parameters:
programPath-
The full path to an executable program or script.
parameters-
An array of command line parameters to send to the executable program at programPath. The parameters can contain String, AttachmentScriptType and FileHandleScriptType objects.
Returns:
An ExecutionResult object with the output of the standard and error streams