Oh look somebody already thought about this already: http://stackoverflow.com/questions/469243/how-can-i-listen-for-usb-device-inserted-events-in-linux-in-python
All you have to do is import the subprocess module and insert a subprocess.call(<clamAV shell command here...>) somewhere in the do_something method. :-) --- Alvin On Tue, Mar 17, 2009 at 9:48 AM, Alvin Delagon <[email protected]> wrote: > KDE uses dbus. You can write a program that will listen to some events. > > --- > Alvin > > > On Mon, Mar 16, 2009 at 9:42 PM, Michael Tinsay <[email protected]>wrote: > >> >> ----- Original Message ---- >> > From: plug bert <[email protected]> >> > >> > Basically we want to automate things for our users..and we really >> don't trust >> > them to do a manual scan. Much safer to perform a real time scan the >> instant the >> > usb drive is plugged in. >> > >> >> >> >> I use KDE. Whenever I insert a flash drive, it opens konqueror. I think >> there is a way to have it do something else, like run a virus scanner on it. >> >> --- mike t. >> _________________________________________________ >> Philippine Linux Users' Group (PLUG) Mailing List >> http://lists.linux.org.ph/mailman/listinfo/plug >> Searchable Archives: http://archives.free.net.ph >> > > > > -- > http://www.alvinatorsplayground.blogspot.com/ > -- http://www.alvinatorsplayground.blogspot.com/
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

