Workspace 6.21.5
RunExternalScript

Runs a script with a user-installed runtime. This is the most generic RunScript operation.

  • Default label: "Run External Script"
  • Member of plug-in: Data analysis
  • Catalogue path: Scripting
  • Polymorphic: RunExternalScript is a Polymorphic Operation. One or more of its inputs and outputs are not listed below because they are created dynamically whenever the operation changes its data type, and when it is first created.
Inputs:
External runtimeQStringSet to the location of the user-installed runtime that will execute the script. If pointing to another version of workspace application, be aware of the inherited environment variables. Setting 'WORKSPACE_INSTALL_AREAS=' in "Environment variables" could workaround this particular situation.
OptionsArrayQStringParameters passed on the command line to the "External runtime" before the script filename.
External script fileQStringIf supplied, set to the location of the script file that will be executed by the "External runtime".
External scriptQStringIf supplied, enter user-defined script directly as an input - this will be saved to a temporary file before execution by the "External runtime".
ArgumentsArrayQStringPararemters passed on the command to the "External runtime" after the script filename.
Output fileQStringIf supplied, this value is passed to the runtime as an environment variable "SCRIPT_OUTPUT_FILENAME".The script itself must read this value and output data to this file.
Working directoryQStringIf supplied, this directory will be used as the working directory during execution.
Environment variablesArrayQStringThese environment variables will be set before the runtime executes the script.
Wait for completionbool

Capture outputbool

Log outputbool

Fail on non zero exit codebool

Outputs:
Exit codeint

Command outputQStringOutput written to the command shell may be captured and returned to the workflow via this output.
Script output fileQStringif a value was entered for the "Output file" input then his will be the same value.
Script outputCSIRO::DataExecution::Dependency

If an output filename and a type are supplied, then the output filename will be read as the specified type and made available to the workflow.