Why use polling when the WMI tells you? The synopsis of DBD::WMI shows an example that detects when a drive gets added/removed. Alternatively, I think I would hook into the dialog that asks "What to do with this device?" whenever a new device is added. But this is all Windows and the question seems to be for Linux...
In reply to Re^6: USB interface
by Corion
in thread USB interface
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |