Skip to end of metadata
Go to start of metadata

Runs a command with optional arguments.

NameTypeRequiredDescription
CommandstringtrueThe command (executable, script etc) to run. This command can not have a user interface and can not wait for user input. If it does wait for input, the plugin will hang indefinitely.
ArgumentsstringfalseOptional arguments.

Note: If the plugin is running under 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>