[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Detecting new removable drives in Linux

Stefan Behnel

3/1/2010 12:46:00 PM

Bart Smeets, 01.03.2010 10:48:
> I'm trying to write a script which detects when a new removable drive is
> connected to the computer. On #python I was advised to use the
> dbus-bindings. However the documentation on this is limited. Does anyone
> know of an example of how I can detect new removable drives?

You could execute a script from HAL, e.g. using halevt, and let the script
communicate with your program.

http://www.nongnu.o...

Stefan