Page 1 of 1

Automatically run a file on USB insert

Posted: Sun Dec 03, 2017 8:28 pm
by BoyApfel
Goodday,

I'm new to thee whole programming scene and don't know where to start. So maybe one of you could help me. What I'm trying to do:

On insertion of an USB stick I want a script to automatically scan the stick and open a file with the *.adf extension. Pause the script when the chosen emulator is running and resume the script when the emulator is stopped. Is it a plausible plan? And if it is, how do I do a thing like this?

Thanks guys.

Greets,
Boy

Re: Automatically run a file on USB insert

Posted: Mon Dec 04, 2017 2:28 am
by asandford
Yes it is, search for UDEV rules with google

Re: Automatically run a file on USB insert

Posted: Mon Dec 04, 2017 5:25 am
by sparkie777

Re: Automatically run a file on USB insert

Posted: Mon Dec 04, 2017 6:58 am
by BoyApfel
Ah great guys. I will look in to this.

Thanks for the help