LJ.XMLRPC.consolecommand
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.
