commands.sh

systemd-cat

linux

Connect a pipeline or program's output streams with the systemd journal.

More info →

Options (2)

-t, --identifierboolean

Use the specified identifier (default: `cat` when reading from a pipeline, executable name otherwise)

Example: {{command}} | systemd-cat {{[-t|--identifier]}} {{id}}
-p, --priorityboolean

Use the specified default priority level for all logged messages

Example: systemd-cat {{[-p|--priority]}} {{emerg|alert|crit|err|warning|notice|info|debug}} {{command}}

Examples (5)

Write the output of the specified command to the journal (both output streams are captured)

Write the output of a pipeline to the journal (`stderr` stays connected to the terminal)

Use the specified identifier (default: `cat` when reading from a pipeline, executable name otherwise)

command | systemd-cat [-t|--identifier] id

Use the specified default priority level for all logged messages

systemd-cat [-p|--priority] emerg|alert|crit|err|warning|notice|info|debug command

Use the specified default priority level for the logged messages from the command's `stderr`

systemd-cat --stderr-priority emerg|alert|crit|err|warning|notice|info|debug command
made by @shridhargupta | data from tldr-pages