[clug] Help please with running a script on an event
rossb at fwi.net.au
Tue Jan 15 07:16:56 UTC 2019
You may need to set up a udev rule.
Here is an intro;
On Tue, 2019-01-15 at 14:32 +1100, jhock via linux wrote:
> Hi all,
> I have written a quick bash script to backup my smartphone using the
> `adb backup -all -apk -obb -shared -f $fileName`
> command. I would like to automatically run this script on the event of
> connecting my smartphone. Can anyone tell me how to run a script or
> prompt me to run a script on the connection of a smartphone via cable?
> Thanks in advance for any help.
More information about the linux