Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi ,
i wrote a new rule for detecting a USB drive(thump drive) connected and automatically create a file in USB drive connected. The rule which i wrote is given below.
i have SCSI hard disk in my system .. I am able to create the symbolic name My_USB and if i am running the script seperately, i am able to perform the operation using the same symbolic link. That means link is created properly right? Only when i am trying to invoke the script through RUN+=RUN+="/usr/bin/script.sh", the required action is not taking place.
How do you know your script isn't being executed? You are not recording any information in a meaningful way (stdout is redirected to /dev/null). Try touching a file in '/tmp' or something to give you an indication of what's happening.
How do you know your script isn't being executed? You are not recording any information in a meaningful way (stdout is redirected to /dev/null). Try touching a file in '/tmp' or something to give you an indication of what's happening.
when i am running the script seperately after creating a symbolic link for USB drive, the required file is getting created in the USB drive(thump drive). But if i am trying to execute the script using the RUN+= option in the UDEV rule, the file is not getting created in the USB drive. from this i concluded that the script is not getting executed if i am tring with UDEV RUN+= option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.