- Joined
- Aug 23, 2009
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hello,
I want to write a shellscript that looks each five seconds if an USB stick is attached and then copies some files onto the stick. But in MacOSX (10.5) each USB stick has its own name. So copying the files to /Volumes/USB-Stick works only if the name is "USB-Stick". Is there an alternative way to mount the stick with a static path (e.g. mount /dev/usb /mnt/usbdrive)?
Or how do I tell the name of the stick to automator, so that I can copy dynamicly the files to the stick via (/Volumes/$Stickname) ?
Thank you for your help.
Best regards
Andre
I want to write a shellscript that looks each five seconds if an USB stick is attached and then copies some files onto the stick. But in MacOSX (10.5) each USB stick has its own name. So copying the files to /Volumes/USB-Stick works only if the name is "USB-Stick". Is there an alternative way to mount the stick with a static path (e.g. mount /dev/usb /mnt/usbdrive)?
Or how do I tell the name of the stick to automator, so that I can copy dynamicly the files to the stick via (/Volumes/$Stickname) ?
Thank you for your help.
Best regards
Andre