python works fine!
Thanks a lot, Mantas.
BR.
发件人: Mantas Mikulėnas <grawity@xxxxxxxxx>
发送时间: 2021年10月23日 6:42 收件人: DHAIY DHAIY <dhaiy@xxxxxxx> 抄送: systemd-devel@xxxxxxxxxxxxxxxxxxxxx <systemd-devel@xxxxxxxxxxxxxxxxxxxxx> 主题: Re: [systemd-devel] 回复: Is it possible to send a string to the journal of one specific systemd unit This option was added with util-linux v2.25 in 2014. If you're using an older version or the Busybox `logger` instead, well, it won't have that.
The alternative is to write your own C tool that uses libsystemd and calls
sd_journal_send() with the correct fields (libsystemd is definitely going to be present), or a Python tool that uses systemd.journal.send(). (Or maybe call libsystemd through python ctypes or whatever other FFI mechanism is available.)
On Fri, Oct 22, 2021 at 4:32 PM DHAIY DHAIY <dhaiy@xxxxxxx> wrote:
Mantas Mikulėnas
|