📓 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 /C dir 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 -c ls -l /home/demouser/

📓 Press enter after entering each argument!

Did this answer your question?