Thanks. I took a brief look at udev and it seems to be something that runs when a device is connected/disconnected, which isn't quite what I'm looking for. But I've only skimmed the surface so I'll keep investigating. I also realized yesterday that the driver for this modem creates a device file at /dev/tty***USBModem, so I may just decide to check for the existence of that file to determine if the USB device is plugged in or not.
(FYI, this application is on an embedded system that won't be changed/reconfigured on site)
|