[clug] Help please with running a script on an event

jhock jhock at iinet.net.au
Tue Jan 15 03:32:58 UTC 2019

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 mailing list