Products › lamco-dbus-tools › Docs
Exit codes and common flags of the lamco-dbus-tools programs
Exit codes and common flags of the lamco-dbus-tools programs: What 0, 1, 2 and 141 mean, the flags every D-Bus debugging program takes, and its JSON errors.
Describes version 0.4.1, with exit status 141 as of 2026-12-01.
Exit codes
The same in every program, and the same as lamco-rdp-tools and lamco-dsi-tools.
| Code | Meaning |
|---|---|
| 0 | The command did its job |
| 1 | The command failed. For dbusdo, a command in the chain failed and wasn't marked soft |
| 2 | A usage error, or the time limit ran out |
| 141 | Whoever read standard output closed it, as head does: The status a shell gives a program SIGPIPE ended, which scripts already expect from the left side of | head. The program ends quietly, without a panic |
A command that didn't do its job never exits 0. A program given no command, or one it doesn't know, exits 2 and says why.
Flags every program takes
Each has one meaning in every program. Long flags are the authoritative form.
| Flag | Short | Meaning | In this version |
|---|---|---|---|
--help |
-h |
The program's terse help | Yes |
--version |
-V |
The program's version | Yes |
--json |
Write output as JSON. An error is then a JSON object on standard output as well as a message on standard error | Yes | |
--verbose |
-v |
Say more about what's being done, on standard error | Accepted; nothing to say yet |
--quiet |
-q |
Say nothing but results and errors | Accepted |
--no-color |
Never color the output | Accepted; nothing is colored yet | |
--timeout <seconds> |
The time limit for the whole run | dbusdo only, default 30. The other programs get it with their first command that can run long |
JSON errors
With --json, an error is one object:
{ "schema_version": "v1", "error": { "kind": "usage", "message": "no help for 'nosuch'" } }
Every JSON output of every program carries schema_version.