For a project I need to copy a file to a USB stick. I need to know the port which a USB stick is connected to. I can not use PID or VID for this, the USB sticks change. With dmesg I do not see the port, camcontrol, cdrecord, usbconfig also gives no port.
If I disconnect the USB stick I get the port!!!!.
This port number I need, then I can program something that if I instruct a person to put
a USB stick to a certain port it will copy one file and if a USB stick is put into the other port it will copy another file.
Many thanks
Raymond
If I disconnect the USB stick I get the port
Code:
umass0: at uhub4, [B]port 3[/B], addr 3(disconnected)
This port number I need, then I can program something that if I instruct a person to put
a USB stick to a certain port it will copy one file and if a USB stick is put into the other port it will copy another file.
Many thanks
Raymond