Page 1 of 1

Detecting a USB drive plugged in

Posted: Fri Jul 18, 2008 5:06 am
by OMA
Hi all. I'm developing a PHP application that will be run locally in a Tablet PC running Linux + Apache. In addition to that, the Tablet has to be able to recognize if the user has plugged a USB drive into it, and in that case, all JPG files from that USB drive should be copied to a directory in the Tablet's hard disk.

Does anyone know how can I accomplish that in Linux? Maybe it can be done with shell scripts?

Thank you!