473,749 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Monitoring a USB-drive / Card-reader using python?

I want to monitor a given USB-device, like a Memory Card-reader, and
when a memory card is inserted I want to move the data on the card to a
different location on the filesystem ( or do something else with the
files).

Does anybody know how to do this ( on Linux and/or windows ) or if it's
even do-able ?

Thomas

Jul 19 '05 #1
1 1900
Thomas W wrote:
I want to monitor a given USB-device, like a Memory Card-reader, and
when a memory card is inserted I want to move the data on the card to a
different location on the filesystem ( or do something else with the
files).

Does anybody know how to do this ( on Linux and/or windows ) or if it's
even do-able ?


Under linux use FAM and udev, together with Python FAM binding
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6504
by: Ashley Harris | last post by:
I hope to have a Linux box sitting in the boot of my car using perl and some CPAN modules for Ogg-Vorbis and Audio Streaming for a home-built stereo system. I recently scored a GPS locater that plugs into a USB port, and this. The old PC doesn't have a usb card in it, not a big deal, I'd pay a few bucks for it, but I can't seem to find a USB module for perl? is there a Devise::USB or equiverlant module for perl? are there other methods...
10
4321
by: Aaron | last post by:
Im new to .net. I would like to upgrade an existing application to .net and add USB support. How do i write a .net application with USB support? We used "mscomm" in vs 6 for serial (rs232) ports. Is there a similar driver in .net for USB ports? any tutorial page out there? Thanks in advance, Aaron
3
15742
by: Robb Gilmore | last post by:
Hi, We have a C#.NET win-forms application that talks to a device plugged into the USB port. Sometimes when severe communications interruptions occur, such as from a burst of ESD electricity, we need to toggle the power on that device in order to bring it back to life. We can do this by unplugging the usb cable from the PC, obviously, but our program needs to recover without manual intervention.
4
2239
by: johnm | last post by:
Hello, We currently are running a CRM application that uses DB/2 7.2 for the data repository. We will be upgrading to 8.2 later this year....maybe....time and resources permitting. The database is currently being hosted with a managed service provider (MSP) at a remote datacenter. This service provider is supposed to be monitoring the health and performance of the database as well as performing proactive maintenance on a regularly...
6
4306
by: chandan | last post by:
I am looking for a small program or two that allows me to see what is being sent to a device on the serial port, and the response coming in the serial port from the device. When I have COM1 open, it seems that the program I made don't work because they need a COM port to themselves?? I always get error messages saying something like "unable to open com port" when it's already open.........
6
3621
by: Don | last post by:
Environment: VB6 under W98 I have a USB hardware device I wish to program directly. The original software installed a low level driver and the hardware is both registered and operational. Now then, I'd like to have access to this device directly. In other words, I'd like to enumerate all devices on the USB bus, pick the one I want, and then communicate with it (send commands, get data, etc).
10
23602
by: Zabby | last post by:
hi, i want to turn on/turn off a usb lamp via a vb.net button... i think i would have to turn on/turn off the power for this usb port.... how could i do this? kind regards
1
2381
by: RichardB | last post by:
I am trying to Reset the USB bus. I have a system with various USB devices attached to it including video capture devices. Occasionally some of the USB devices either disappear or fail to operate. Restarting the computer or unplugging and replugging the device corrects this, however this is not a viable solution while the system is running. I'm looking for a way of resetting or re-initializing the USB bus or the USB hub in the hope...
5
10571
by: galapogos | last post by:
Hi, I'm wondering how I can scan the system for USB devices and read off the USB descriptors such as VID/PID/serial number in C? I have an external USB HDD that I wish to access, and I'm currently able to do so with DeviceIoControl by addressing it as PhysicalDriveX, which will return me information about the device, except it only does it for the attached fixed disk, rather than the USB device. Thanks!
0
449
by: zhensoftware | last post by:
USB storage devices have gained popularity. It can be host to viruses, Trojans, hacker toolkits, worms or other forms of malicious programs. For example, when you plug your USB disk into a computer that is infected by viruses, viruses will create a file named AUTORUN.INF and malicious programs on your USB disk. Then, when you plug the USB disk to another computer, the one will be at risk. Threats from USB storage devices to computer have...
0
8833
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.