Best way to continuosly cat tty to journal
0
votes
1
answer
93
views
I have a serial device that shows output at
/dev/ttyX
. I can cat
this and watch the output come in on my current terminal, But I want to log the output to the system journal even if I'm not at a terminal.
I could make a systemd service that is basically (pseudocode) tail -f /dev/ttyX | systemd-cat -t mydevice -p info
. But is there a more built-in way to tell systemd to put the contents in the journal?
Asked by sudo pkill depression
(23 rep)
Feb 14, 2025, 07:42 PM
Last activity: Feb 15, 2025, 11:06 AM
Last activity: Feb 15, 2025, 11:06 AM