[clug] Help please with running a script on an event
Brenton Ross
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;
https://www.tecmint.com/udev-for-device-detection-management-in-linux/
Brenton
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.
>
>
> John.
>
>
>
More information about the linux
mailing list