OS Command

The OS command can be used to execute any command on a host running the Loome Integrate Agent.

OS Command task type

This process uses the host operating system’s native terminal to run the command, meaning that if you are able to execute the command as a user of the host then the Agent will be able to execute the command as well.

Loome Integrate does not safeguard against any commands that may be detrimental to your host, ensure that the agent is being run with a safe amount of permissions and avoid running the agent with administrator/root privileges.

OS Command script

You can enable a setting for this task to run scripts in parallel. This will allow the Loome Integrate agent to execute multiple scripts in parallel, rather than in sequence. Learn more here.

Working with Parameters

The parameters in an OS Command will be provided as arguments to the command invocation.

When working with parameters, please note:

  • Task parameter values are quoted and passed left to right in Command Prompt in Windows and Bash in Linux. This will allow you to have variables with spaces in the value.

  • Task parameter values are also trimmed for white space, if the parameter value contains nothing after being trimmed it will not be passed as an argument.

  • Task parameters can be accessed in descending order. In Windows it will be accessed as %1, %2, %3, and in Linux as $1, $2, $3.

To learn how to use a File Connection as your Script Source to execute a script in your Git Repository, please read more here.

Add the parameter name and default value.

Then add the parameter using the Add Parameter button on the right.

OS Command task type

Once you have added your parameters, you can submit and run the task.