Sample Header Ad - 728x90

omit command output on systemd-run

0 votes
1 answer
45 views
when running systemd-run --pty --same-dir --wait --service-type=exec I get all the command output in journal. While nice, it is not something I want/can afford all the time. for example, if I want root to run ls as
systemd-run --user  --nice=+1 --same-dir --collect --service-type=exec --pty --wait --unit MYSYSRUND ls -la
how can I avoid the output of ls being on journal? metadata is fine.
Asked by gcb (632 rep)
May 22, 2024, 07:14 PM
Last activity: May 31, 2024, 11:52 AM