Help Desk

Submit a ticket My Tickets
Welcome
Login

Script Runner BizApp


Core BizApp

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.

Connection Setup

To automate functionality to execute batch and shell scripts with OneCloud, you’ll need to navigate to the connection manager to create a connection.

From here, choose ScriptRunner from the service drop-down and select the appropriate Runner. Now, enter values for the following fields: 

Examples

Note

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:

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

Press enter after entering each argument!

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 

Press enter after entering each argument!

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 /Cdir c:\temp

Press enter after entering each argument!

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 -cls -l /home/demouser/

Press enter after entering each argument!


What's Next?

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

B
Brian is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.