This question already has an answer here:

SUBSYSTEMS=="usb", ATTRS{idProduct}=="1337", ACTION=="add", RUN+="/usr/local/bin/New.sh"



vlc v4l2:///dev/video0

udevadm test shows that it runs the script but nothing happens :/

marked as duplicate by G-Man, GAD3R, Ipor Sircer, Jeff Schaller, Christopher Dec 19 '18 at 16:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You could use libudev, that could be what you are looking for.

  • Saying that they could use something isn't an Answer; how would they use it to solve their problem? – Jeff Schaller Dec 19 '18 at 17:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.