BoyApfel
Posts: 2
Joined: Sun Dec 03, 2017 8:15 pm

Automatically run a file on USB insert

Sun Dec 03, 2017 8:28 pm

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

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: Automatically run a file on USB insert

Mon Dec 04, 2017 2:28 am

Yes it is, search for UDEV rules with google


BoyApfel
Posts: 2
Joined: Sun Dec 03, 2017 8:15 pm

Re: Automatically run a file on USB insert

Mon Dec 04, 2017 6:58 am

Ah great guys. I will look in to this.

Thanks for the help

Return to “General programming discussion”

Who is online

Users browsing this forum: No registered users and 5 guests