Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with batch-linking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
alexthelion
n00b
n00b


Joined: 07 Dec 2003
Posts: 8

PostPosted: Sat Dec 13, 2003 12:32 pm    Post subject: Need help with batch-linking Reply with quote

Hi,

I would like to do the following: link all *.m3u files in /windows/D/Eigene\ Dateien/My\ Music (including subdirectories) symbolically to files with the same name in /home/myname/Playlists.

Does anybody know how I can automate this? Thanks!
Back to top
View user's profile Send private message
compu-tom
Guru
Guru


Joined: 09 Jan 2003
Posts: 415
Location: Berlin, Germany

PostPosted: Sat Dec 13, 2003 12:43 pm    Post subject: Re: Need help with batch-linking Reply with quote

alexthelion wrote:
I would like to do the following: link all *.m3u files in /windows/D/Eigene\ Dateien/My\ Music (including subdirectories) symbolically to files with the same name in /home/myname/Playlists.


Code:
cd /home/myname/Playlists
for f in /windows/D/Eigene\ Dateien/My\ Music/*.m3u; do
ln -s $f
done


That's it :)
Back to top
View user's profile Send private message
alexthelion
n00b
n00b


Joined: 07 Dec 2003
Posts: 8

PostPosted: Sat Dec 13, 2003 1:07 pm    Post subject: Reply with quote

Cool. ln -s /windows/D/Eigene\ Dateien/My\ Music/*/*.m3u /home/hunzikea/Playlists/
works, too. It' just a pity that neither XMMS, Totem, beep nor Rhythmbox accepct those links as playlists. :-(
Back to top
View user's profile Send private message
compu-tom
Guru
Guru


Joined: 09 Jan 2003
Posts: 415
Location: Berlin, Germany

PostPosted: Sat Dec 13, 2003 1:52 pm    Post subject: Reply with quote

alexthelion wrote:
It' just a pity that neither XMMS, Totem, beep nor Rhythmbox accepct those links as playlists. :-(

Take a look into the m3u files. I guess they contain windows paths like D:\Eigene Dateien\My Music\.
Back to top
View user's profile Send private message
alexthelion
n00b
n00b


Joined: 07 Dec 2003
Posts: 8

PostPosted: Sat Dec 13, 2003 2:49 pm    Post subject: Reply with quote

Quote:
I guess they contain windows paths like D:\Eigene Dateien\My Music\.


No, that's not the problem. All my Playlists are in the same directory as the Music files and contain no absolute paths. The problem is more that either the software doesn't accept links as playlists, doesn't accept playlists at all or does the relative path search from the linked file.

Any idea how to get correct playlists in my home directory?
Back to top
View user's profile Send private message
compu-tom
Guru
Guru


Joined: 09 Jan 2003
Posts: 415
Location: Berlin, Germany

PostPosted: Sat Dec 13, 2003 3:56 pm    Post subject: Reply with quote

Linux is case-sensitive, while Windows is not. Maybe this is the problem. Check how Linux sees the files and compare them with how they are written in the playlists.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum