[Rpm-maint] [rpm-software-management/rpm] rpm.execute() and rpm.spawn() seem unsuitable for file triggers (Discussion #4029)

Daan De Meyer notifications at github.com
Tue Nov 4 08:10:57 UTC 2025


@pmatilai I want to run `/usr/lib/systemd/systemd-update-helper --stdin --system remove-units` from a lua file trigger and have it read the input from stdin.

```
%filetriggerpostun -P 1000100 -- {{SYSTEM_DATA_UNIT_DIR}}/ /etc/systemd/system/
assert(rpm.execute("{{SYSTEMD_UPDATE_HELPER_PATH}}", "--stdin", "--system", "remove-units"))
```

The above currently does not work whereas it does work in a regular shell trigger.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4029#discussioncomment-14866470
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/4029/comments/14866470 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251104/7bd7a3cd/attachment-0001.htm>


More information about the Rpm-maint mailing list