I think i may not properly communicated my requirement or people wont
understand my requirement. My requirement is simply detect usb storage device plugged into PC and notify any files are transfered(not data transfer, i need file names) . I knew syslod and dmesg command will give newly plugged in devices and device file system into to which it is attached. As syslod and dmesg will provide whole system activity, i don't need all those, just usb storage device that just plugged in now. Detection will be done using /proc/bus/usb/device file. After detection i need notify file transfers, this can be done using inotify if i know the mount point. As i don't want to use syslogd messages and dmesg command, i asked in this forum is there any way to find out device to which my usb storage is attached. I did search in google how these syslogd and dmesg will ftech these info. I did not get proper information. Using the information in the /proc/bus/usb/device file can i get the device to which usb storage is attached ? Or if any body knew how dmesg or syslogd will fetch the information about plugged in usb storage devices. Regards, Ravikumar. ravikumar wrote:Please help me for the following projectThe command "df" gives the details about mounted filesystems, mount points and usage space. |