monitoring device status with python ...

Ajay Deshpande ajd at kring.com
Tue Jan 22 23:37:15 EST 2008


hi everyone:

i am writing a program, which needs to keep monitoring whether a certain usb hard drive is connected/hot-plugged in or not. instead of repeatedly checking if its path exists or not, can i have the os let my program know that the device has been connected? i have read about the minihallib module but have not come across an elaborate example. can any of you point me to any examples (or alternatives)?

id appreciate any help.

regards,
-ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080123/5002193f/attachment.html>


More information about the Python-list mailing list