Results 1 to 4 of 4

Thread: Force find command to search within Symlinks?

  1. #1
    Join Date
    Jun 2017
    Beans
    9

    Force find command to search within Symlinks?

    So currently I am working on an update script for a dedicated Arma server that will allow me to not only keep server files and mod packages updated, but ensure that each one of our servers receives their correct modpack from a local repository stash of mod folders.

    I have managed to get everything updated, all mods orientated to specific mod folders for each "mod pack" that we're creating for each server, and have the mods symbolically linking to each server's mod directory.

    The trouble now is, Arma requires servers to consolidate a key file (.bikey file) for each mod into a "key" folder within the root server directory.

    I have been trying to use the following find command to accomplish this:
    Code:
    cd $RedServerMod
    find . -name \*.bikey -exec ln -rs {} $RedServerKey \;
    Where $RedServerMod points directly to the mod directory where fresh symlinks have been created, and $RedServerKey points to the destination key directory on the server's rood dir.

    In my testing, I have found that the "find" command doesn't seem to want to travel down the symlink path.

    How can I accomplish this exactly?

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Force find command to search within Symlinks?

    Quote Originally Posted by nightraver View Post
    In my testing, I have found that the "find" command doesn't seem to want to travel down the symlink path.

    How can I accomplish this exactly?
    Code:
    find -L
    follows symlinks.

  3. #3
    Join Date
    Jun 2017
    Beans
    9

    Re: Force find command to search within Symlinks?

    Perfect. Thanks!

  4. #4
    Join Date
    May 2006
    Beans
    1,790

    Re: Force find command to search within Symlinks?

    There is also -follow, which is apparently similar but not identical. (I just took a quick look in the man page - I knew about -follow but not about -L.)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •