Discussion:
udev rules: how to get return result after run command
Add Reply
Guoqing Jiang
2017-07-31 08:49:30 UTC
Reply
Permalink
Raw Message
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

Loading...