OneCloud

Script Runner

A generic OneCloud BizApp to synchronously launch scripts and executables on various platforms. The OneCloud Script Runner supports the execution of native binaries, batch and shell scripts on Windows and non-Window platforms.

This BizApp only operates with OneCloud GroundRunners. Learn more about GroundRunner Configuration.

For documentation on all available commands, see the Script Runner Command Reference.

Connection Setup

To enable OneCloud to execute batch and shell scripts, you'll need to navigate to the connection manager to create a connection.

From here, choose Script Runner from the service drop-down and select the appropriate Runner.

Connection Example

Examples

Notes

Please be advised that the Script Runner Command parameters can only be a single executable. The Arguments input is reserved for providing incremental parameters and controls used by the executable. Additionally, be advised that each parameter must be a separate element in the Command Arguments. Please see the following examples:

Press enter after entering each argument.

Executing a Windows Batch Script

Start with a sample Microsoft Windows batch script:
echo %1 %2

  • OneCloud Script Parameter #1: First parameter of the batch script
  • OneCloud Script Parameter #2: Second parameter of the batch script

Executing a Python Script

Note that the following example is based on how the Python script is configured. If the Python script required two parameters, then the OneCloud command would require:

  • OneCloud Script Parameter #1: Script Name
  • OneCloud Script Parameter #2: First parameter of the Python script
  • OneCloud Script Parameter #3: Second parameter of the Python script

Executing a Windows Operating System Command

Many Windows CLI commands are a function under the cmd.exe executable. To perform such tasks such as list files in a directory, the cmd.exe needs to be executing and then the functions are passed in as parameters:

  • Command: C:\Windows\System32\cmd.exe
  • Arguments /C dir c:\temp

Executing a Linux or macOs System Command

Many Linux CLI commands are a function under the sh executable. To perform such tasks such as list files in a directory, the sh needs to be executing and then the functions are passed in as parameters:

  • Command: /bin/sh
  • Arguments -c ls -l /home/demouser/

Script Runner


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.