Answer by con-f-use for How to run a shell script when a new USB storage...
Use Udev. Udev is a device manager daemon. Amongst other things it is responsible for naming your devices. You can define udev-rules by putting files with a certain syntax in the rules directory. The...
View ArticleHow to run a shell script when a new USB storage device is detected?
I want a script that dumps the log and starts logging on it as soon as a usb mass storage is plugged (with the file 'OKdump' on it).And if anything abnormal(Like a error that is visually present) is...
View Article
More Pages to Explore .....