[systemd-devel] udev rules: how to get return result after run command

Guoqing Jiang gqjiang at suse.com
Mon Jul 31 08:49:30 UTC 2017


Hello,

Sorry if this is not the right place to raise the question.

I can get return result after run with PROGRAM call, then $result holds
the returned string, but with PROGRAM, I have to use the absolute path
of command.

And sometimes, the command may located in different path for different
distros, so it could cause portable issue. I guess "RUN{builtin}" could be
used to avoid the issue, however I can't figure out how to get the return
value of "RUN{builtin}".

Any advises would be very helpful.

Thanks,
Guoqing


More information about the systemd-devel mailing list