LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2010, 12:21 PM   #1
Zup
LQ Newbie
 
Registered: Apr 2006
Posts: 21

Rep: Reputation: 0
Linking files: all but some? (Wow in Windows/Linux)


Probably already answered, but can't find a howto.

I've got a shared (Windows/multiuser Linux) laptop, and I've got installed World of Warcraft and some steam games in Windows.

With steam games, there is (almost) no problems. I've installed steam in Linux, and soft linked the 'steamapps' directory (per-game compatibility is another issue).

With WoW, the problem is different. I would like to have almost (but not) all files. Under World of Warcraft, every file and directory must be linked except the Interface directory and WTF/config.wtf file (so every user can play with their own settings and addons).

How can I have a mix of linked and not linked files without linking every file? If I link manually every file/dir, when updating from Linux other users and Windows Wow is not updated; when updating from Windows, new files remains "unlinked".
 
Old 02-20-2010, 12:25 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
If you are speaking of the ln command, as I think that you are, then ... yes, the links must be to individual files and/or directories. You might be able to use a bash-script command-line (see for, find, xargs) to automate the process somewhat.

I don't know this game, but I am mildly surprised that it does not have configuration-settings that point to the different directories, e.g. to accommodate "multiple users."
 
Old 02-20-2010, 01:24 PM   #3
BeacoN
Member
 
Registered: Nov 2008
Distribution: Linux Mint
Posts: 56

Rep: Reputation: 17
linking certain files

Not exactly sure what you're asking, but to filter which files are linked you can use 'find' with some arguments. To link all files under the current directory that don't end in '.ctf' would be like this...

find ./ -type f -not -iname "*.ctf" -exec ln '{}' \;

you can contour the filter as much as you can contour the find command (a good bit including regexes). To make the links in their own directories would be a bit more work.
 
Old 02-20-2010, 01:54 PM   #4
Zup
LQ Newbie
 
Registered: Apr 2006
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks for the answers!

I've been sniffing everywhere, and it seems that another choice would be using aufs or unionfs to join two directories, but I'm still looking for a How To on that subject...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Windows and Linux Clipboards OnoTadaki Programming 1 10-31-2007 03:20 AM
LXer: Dynamic linking in Linux and Windows, part one LXer Syndicated Linux News 0 08-09-2006 09:33 AM
linking Windows/Delphi/Linux deadlock Programming 3 10-14-2003 05:09 PM
WOW linux cracked more than windows BajaNick General 21 09-20-2003 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration