Command Script Runner

View addon

Version

1.0.0.8

Release note

Initial release

Plugin usage

Command script runner can execute the script without any argument or with page content as argument.
You have control via the preset key listed below:
  • script: the actual script / command relative from $SCRIPT_HOME.
  • script-parameter: content / none (default: content) , passing content to script.
  • script-runner: besides using #! within the script, you can specify path to the executable like /usr/bin/ruby
You can limit the macro to pages under certain space.
In order to limit to certain space, you will need to configure the macro from Confluence Admin Page
  • Space Key: the space that you want to limit to, and it will autocomplete for you.
  • SCRIPT_HOME: the path to folders that contain scripts

Example of using the macro

  1. Add macro to new page or existing page.
  2. Enter key/value into macro body, for example:
    1. script: scripts/translate_to_korean
    2. script-parameter: content
  3. Save the page.
  4. Click the run button.

Plugin Installation Guide

Installation guide

  1. Log into your Confluence instance as an admin.
  2. Click the admin dropdown and choose Atlassian Marketplace. The Manage add-ons screen loads.
  3. Click Find new add-ons from the left-hand side of the page.
  4. Locate Odd-e Command Script Runner via search. The appropriate add-on version appears in the search results.
  5. Click Try free to begin a new trial or Buy now to purchase a license for Odd-e Command Script Runner. You're prompted to log into MyAtlassian. Odd-e Command Script Runner begins to download.
  6. Enter your information and click Generate license when redirected to MyAtlassian.
  7. Click Apply license. If you're using an older version of UPM, you can copy and paste the license into your Confluence instance.