HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemd-stdio-bridge — Implement a proxy between `stdin`/`stdout` and a D-Bus. Note: It expects to receive an open connecti

Submitted by: @import:tldr-pages··
0
Viewed 0 times
implementproxycommandstdoutbetweenclistdinsystemd-stdio-bridge
linux

Problem

How to use the systemd-stdio-bridge command: Implement a proxy between stdin/stdout and a D-Bus. Note: It expects to receive an open connection via stdin/stdout when started, and will create a new connection to the specified bus. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-stdio-bridge.html>.

Solution

systemd-stdio-bridge — Implement a proxy between stdin/stdout and a D-Bus. Note: It expects to receive an open connection via stdin/stdout when started, and will create a new connection to the specified bus. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-stdio-bridge.html>.

Forward stdin/stdout to the local system bus:
systemd-stdio-bridge


Forward stdin/stdout to a specific user's D-Bus:
systemd-stdio-bridge --{{user}}


Forward stdin/stdout to the local system bus within a specific container:
systemd-stdio-bridge {{[-M|--machine]}} {{mycontainer}}


Forward stdin/stdout to a custom D-Bus address:
systemd-stdio-bridge {{[-p|--bus-path]}} unix:path=/{{path/to/dbus_socket}}

Code Snippets

Forward `stdin`/`stdout` to the local system bus

systemd-stdio-bridge

Forward `stdin`/`stdout` to a specific user's D-Bus

systemd-stdio-bridge --{{user}}

Forward `stdin`/`stdout` to the local system bus within a specific container

systemd-stdio-bridge {{[-M|--machine]}} {{mycontainer}}

Forward `stdin`/`stdout` to a custom D-Bus address

systemd-stdio-bridge {{[-p|--bus-path]}} unix:path=/{{path/to/dbus_socket}}

Context

tldr-pages: linux/systemd-stdio-bridge

Revisions (0)

No revisions yet.