Re: [systemd-devel] Create a tmpfile with content from output of executing a command

2023-10-09 Thread Mantas Mikulėnas
No, and that doesn't sound like a good fit for systemd-tmpfiles anyway. Use an ordinary Type=oneshot .service instead. (In current systemd versions, you can even specify StandardOutput to be a file; in older versions calling `/bin/sh -c "... > file"` is fine.) Your email domain has a strict SPF/D

[systemd-devel] Create a tmpfile with content from output of executing a command

2023-10-05 Thread Renjaya Raga Zenta
Hi list, I'd like to create a temporary file using systemd-tmpfiles. The file will contain merge of multiple text files. Can the argument field in tmpfiles.d be a path to an executable? So I can create a script to print the content of those multiple files. Or maybe there is another way to do this