Udev not working [duplicate]
This question already has an answer here:
How to run custom scripts upon USB device plug-in?
2 answers
SUBSYSTEMS=="usb", ATTRS{idProduct}=="1337", ACTION=="add", RUN+="/usr/local/bin/New.sh"
script:
#!/bin/sh
vlc v4l2:///dev/video0
udevadm
test shows that it runs the script but nothing happens :/
udev
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.
add a comment |
This question already has an answer here:
How to run custom scripts upon USB device plug-in?
2 answers
SUBSYSTEMS=="usb", ATTRS{idProduct}=="1337", ACTION=="add", RUN+="/usr/local/bin/New.sh"
script:
#!/bin/sh
vlc v4l2:///dev/video0
udevadm
test shows that it runs the script but nothing happens :/
udev
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.
add a comment |
This question already has an answer here:
How to run custom scripts upon USB device plug-in?
2 answers
SUBSYSTEMS=="usb", ATTRS{idProduct}=="1337", ACTION=="add", RUN+="/usr/local/bin/New.sh"
script:
#!/bin/sh
vlc v4l2:///dev/video0
udevadm
test shows that it runs the script but nothing happens :/
udev
This question already has an answer here:
How to run custom scripts upon USB device plug-in?
2 answers
SUBSYSTEMS=="usb", ATTRS{idProduct}=="1337", ACTION=="add", RUN+="/usr/local/bin/New.sh"
script:
#!/bin/sh
vlc v4l2:///dev/video0
udevadm
test shows that it runs the script but nothing happens :/
This question already has an answer here:
How to run custom scripts upon USB device plug-in?
2 answers
udev
udev
edited Dec 19 '18 at 17:14
asked Dec 19 '18 at 14:23
xCorea
11
11
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.
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
add a comment |
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
add a comment |
You could use libudev, that could be what you are looking for.
You could use libudev, that could be what you are looking for.
answered Dec 19 '18 at 16:22
Jonson86
82
82
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
add a comment |
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
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
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
add a comment |