Skip to Content

Run Command

Introduction

The Run Command plugin runs a command with optional arguments.

This plugin can be associated only with Private Agent Groups and is not available on the Jitterbit Cloud Agent Groups.

Important

Plugins provided by Jitterbit are deprecated. See Deprecation and Support in Plugins.

Download and Add the Plugin

The Run Command plugin is a standard Jitterbit plugin that is already available in the Management Console Plugins page and does not need to be downloaded or added to the organization.

If directed by Jitterbit Support, this plugin can be downloaded at the link provided below and added to the organization (see Add New Plugins in Customizations > Plug-ins).

Associate the Plugin with an Agent Group

The Run Command plugin must be associated with a Private Agent Group to make the plugin available on all agents in the group (see Associate Agent Groups in Customizations > Plug-ins).

The plugin is listed in the Management Console Plugins page with a display name of Jitterbit - Run Command.

Set Variables and Use the Plugin in a Project

Refer to these topics for information about using plugins in a project:

The Run Command plugin uses these variables:

Name Type Required Description
Command String Required The command (executable, script, etc.) to run. This command cannot have a user interface and cannot wait for user input. If it does wait for input, the plugin will hang indefinitely.
Arguments String Optional Optional arguments.

Note

If the plugin is running under a Windows OS, any backslashes in the command or optional arguments need to be escaped. For example:

<trans>
$file1 = 'C:\\Windows\\Temp\\jitterbit\\TemporaryStorage\\61700\\list.txt';
$file2 = 'C:\\Windows\\Temp\\jitterbit\\TemporaryStorage\\61700\\test2.txt';
$Command ='cmd';
$Arguments = '/c copy ' + $file1 + ' ' + $file2;

RunPlugin("<TAG>plugin:http://www.jitterbit.com/plugins/pipeline/user/RunCommand</TAG>");

$msg=GetLastError();
</trans>