I want a side script or a settings change that fires a second or primary script that does the actual work. I do not need to do it just for my computer. So it should work on any Linux computer.
I need to know the path (and thereby content) of a freshly mounted USB so that I can run a script that uses data on the USB for which i would need the path. I read some things about udev but they weren't explanatory enough. This command:
ACTION=="add", ATTRS{idVendor}=="abcd", ATTRS{idProduct}=="1234", RUN+="/home/bibi/bin/xyz.sh
will set a USB to run script every time any device is mounted to it. But how do I find out the path of the USB drive? (e.g. /home/???
)
Thanks in Advance. Sorry if insufficient data or if i missed something