On Fri, 2021-10-22 at 08:42 +0000, DHAIY DHAIY wrote:
> But is there a way to insert one string from command-line into
> myservice's journal so that it can be seen byjournalctl -u myservice
> later

Try this:

$ echo "foo" | systemd-cat -t foobar

Then you can access your string with:

$ journalctl -t foobar

S

Reply via email to