Detecting a USB drive plugged in

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
OMA
Forum Newbie
Posts: 7
Joined: Wed Jun 11, 2008 10:25 am

Detecting a USB drive plugged in

Post 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!
Post Reply