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 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>