Six Apart Developer Center

Developer Center Home » Product Documentation » LiveJournal »

LJ.XMLRPC.consolecommand

Posted by Byrne Reese on March 3, 2006

The LiveJournal server has a text-based shell-like admininistration console where less-often used commands can be entered. This provides a framework for dispatching commands to a LiveJournal server.

Request Parameters

  • LiveJournal’s Common Request Parameters
  • commands - An array containing the 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.

Return Values

  • results - An array of stuct of type Command representing 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 ‘error’ with red, ” (stdout) with black, and ‘info’ with green. Clients are encouraged to also, if possible.

Command Type

A struct containing the following keys:

  • success - Return status of nth command. 0 or 1.
  • output - An a struct containing the following keys with a key either “” (normal output), “error”, or “info”, something to be emphasized over normal output, and the value being the text of that line.

Sample Request

Sample Response

Perl Code Sample

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.