rustysail
June 17th, 2007, 01:47 PM
Sorry if I'm posting this in the wrong forum. I wasn't sure where my question would fit.
I have a cheap mp3 player that I want to work with. It can't come close to holding my entire music collection, but I still like it. I currently use it as a USB flash drive as well so the amount of space on it varies daily. I know a small amount of bash scripting, but what I want to do with it is over my head. I am interested in learning though. I am using fiesty right now. The player works on a drag and drop interface requiring no software.
I want to set up a bash script so that when I plug in my player songs are automatically taken at random from my music folder (/data/music) and put on the mp3 player (/media/disk). I want it to continue copying the music until it runs out of room. It needs to delete everything in its roots folder (the old music) before it puts int he new music, but it can't delete the folder inside labeled data because that is what I am using as a flash drive.
Any ideas would be a great help. I want to learn, but I need a good shove in the right direction. Thanks a lot.
I have a cheap mp3 player that I want to work with. It can't come close to holding my entire music collection, but I still like it. I currently use it as a USB flash drive as well so the amount of space on it varies daily. I know a small amount of bash scripting, but what I want to do with it is over my head. I am interested in learning though. I am using fiesty right now. The player works on a drag and drop interface requiring no software.
I want to set up a bash script so that when I plug in my player songs are automatically taken at random from my music folder (/data/music) and put on the mp3 player (/media/disk). I want it to continue copying the music until it runs out of room. It needs to delete everything in its roots folder (the old music) before it puts int he new music, but it can't delete the folder inside labeled data because that is what I am using as a flash drive.
Any ideas would be a great help. I want to learn, but I need a good shove in the right direction. Thanks a lot.