Udev not working [duplicate]












0















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 :/










share|improve this 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.




















    0















    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 :/










    share|improve this 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.


















      0












      0








      0








      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 :/










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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.
























          1 Answer
          1






          active

          oldest

          votes


















          0














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






          share|improve this answer





















          • 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


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














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






          share|improve this answer





















          • 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
















          0














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






          share|improve this answer





















          • 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














          0












          0








          0






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






          share|improve this answer












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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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


















          • 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



          Popular posts from this blog

          Morgemoulin

          Scott Moir

          Souastre