Section: systemd-cat (1)
:systemd-cat [OPTIONS...] [COMMAND] [ARGUMENTS...]
If no parameter is passed, systemd-cat will write everything it reads from standard input (stdin) to the journal.
The following options are understood:
Example 1. Invoke a program
This calls /bin/ls with standard output and error connected to the journal:
# systemd-cat ls
Example 2. Usage in a shell pipeline
This builds a shell pipeline also invoking /bin/ls and writes the output it generates to the journal:
# ls | systemd-cat
Even though the two examples have very similar effects the first is preferable since only one process is running at a time, and both stdout and stderr are captured while in the second example, only stdout is captured.
Tutoriais de Tecnologia Web