====== runcommand Plugin ======
---- plugin ----
description: Execute a program on the fly and show its output
author : Alessandro Celli
email : aelsantex[at]gmail.com
type : Syntax
lastupdate : 2014-04-01
compatible : Binky, !Hogfather, Greebo
depends :
conflicts :
similar :
tags : command, program, jquery
sourcerepo : https://github.com/aelsantex/runcommand
bugtracker : https://github.com/aelsantex/runcommand/issues
downloadurl: https://github.com/aelsantex/runcommand/archive/master.zip
----
===== Description =====
This plugin executes a program on the fly and shows its output.
You can use it to generate reports from the system or to execute some administration steps.
For example, I use it to collect information from my enterprise servers (free space on disks, hardware status, etc.)
===== News =====
* //1 Apr 2014//: New version released. This version is compatible with Binky or higher.
===== Installation =====
==== Plugin Installation ====
Download and install the plugin using the [[plugin:extension|Extension Manager]].
Alternatively, refer to [[:Plugins]] on how to install plugins manually. If you want install manually follow this procedure:
- Download the zip file from github: [[https://github.com/aelsantex/runcommand/archive/master.zip]].
- Copy the master.zip file into Dokuwiki plugins dir.
- unzip master.zip
- rename the extracted folder from runcommand-master to runcommand.
- give the right permission (755 on linux) and owner (maybe www-data on linux).
==== Script directory ====
Create a directory under DOKUWIKI_ROOT folder and set it into **script_dir** field of runcommand section under wiki configuration page.
As default, I choose to set DOKUWIKI_ROOT/data/scripts directory. See [[#configuration|configuration]] for more details.
===== Syntax =====
To fix some old limits and to give a most pratical support with new objects I broke the compatibility with the old syntax.
This is the new grammar for runcommand plugin:
==== Grammar ====
command|
outputType|{ choice | text | wiki | html | binary }
runButtonText|
cancelButtonText|{ | none }
[ ||<>|<> ]
...
[ ||<>|<> ]
<> ::= [ newline ] [ , <> ]
<> ::= {
hidden= |
list=: