Oct 12, 2008 at 11:21am UTC
Hi, I am a newbi to linux,
i wana to write a program in C that can detect arrival of a usb flash memory. I want also to find the actual mount point of new inserted flash disk. can anyone help me?
thanks a lot
Last edited on Oct 12, 2008 at 11:54am UTC
Oct 12, 2008 at 6:57pm UTC
This isn't really a C/C++ question.
I'd try on a Linux forum. But I'd imagine either you have to setup a kernel signal hook, or poll.
Oct 13, 2008 at 5:24am UTC
whether this section is not "UNIX/Linux Programming". whether other questions such as "How to write a port scanner" is a really C/C++ Question?
Oct 13, 2008 at 7:11pm UTC
English please.
And yes, that other question is debatable. However, they asked for programming advice on where to start.
I'd look at how to either poll for new devices, or to do a kernel hook.
http://www.cplusplus.com/forum/articles/1295/
Last edited on Oct 13, 2008 at 7:12pm UTC