XML-RPC Protocol Method: consolecommand

The Dreamwidth server has a text-based shell-like administration console where less-often used commands can be entered. There's a web interface to this shell online, and this is another gateway to that.

Inputs
commands Array of strings. Required. Array of commands to send, with double quotes around any arguments with spaces, and double quotes escaped by backslashes, and backslashes escaped with backslashes. Optionally, you can send a listref instead of a string for this argument, in which case, we'll use your argument separation and not parse it ourselves.

Example Request


Outputs
results Array of structs. One struct returned for each command run, that struct containing both the overall return value, and the line-by-line output of the command, with each line of output being tagged by type (think stdout vs. stderr, but with stdinfo also). The web interface shows errors in red, normal output in black, and informational output in green. Clients are encouraged to also, if possible. Each struct contains these keys:


 * success Int. Return status of nth command. 0 or 1.
 * output Array of arrays. This array holds a 2-item array for each line of a command's output. The items in the array are:
 * String. Type of output line. Either "" (normal output), "error", or "info", something to be emphasized over normal output.
 * String. The text of that line.

Example Response
