Symbolic links in jar

hi
i am facing some problem with symbolic links in JAR.
1)i create a jar file of a directory which has symbolic links in it.
2)when i unjar it the symbolic links are lost and instead those links contains the data which they were referencing to, which means that the links are dereferenced.
Can any of u help me out of this? Do jar or zip maintains the symbolic link or not?
thanks in advance.
Vipul

jar-files are typically moved away, so having a symlink in it would be a problem, cause it would mostly be invalid on the target host.
A few hosts run windows which doesn't even know symbolic links.
As jar is a kind of zip - how should you zip a symbolic link?
The idea of symbolic links is, to show some files, which are in fact at some other place, as if they were there.
Therefor jar 'believes' that those files are there.
If it would check the file-type, and find out, it is a symlink, what should it do?
If you don't move your zip around, what's the benefit of a jar?
It's smaller, because it's packed.
But you may not make a symlink smaller.

Similar Messages

  • Does ucf.jar handle symbolic links?

    When bulding a .zxp package using ucf.jar on the command line, I wish to package symbolic links which point at files which are not necessarily here on my system - they point at elements which will be installed as part of the extension.
    When ucf.jar encounters such a symbolic link, however, it stops, saying “no such file” with the name of the link.
    Is this expected behaviour? If so, when will this bug be fixed? Let me know if more details are required!

    If the file exists, then the pointed-to files are packaged, instead of the symbolic link itself, which is not what I'm after either; this is a link which will be correct on the destination after the bundle is unpacked, but which may not yet be present on the system doing the packaging. I think this may be related to http://forums.adobe.com/message/4681087#4681087 , though it is not exactly the same problem.
    Perhaps to rephrase my question then:
    How may I package a symbolic link using ucf.jar?
    At the moment there are two options:
    • Destination pointed to by link does not exist -> failure with “file not found”.
    • Destination pointed to by link does exist -> package is built containing the destination file, not the symbolic link.
    Neither of these behaviours is what I want: I want to package the link!

  • Including symbolic links in a JAR

    I'm trying to package a webapp that has a symbolic link for the images directory. The images will live on another server where they can be shared across all servers. I'm building the jar using:
    jar cvf myapp.war *
    When dropping the war into the resin webapps directory, it automatically unpacks it. It appears the symbolic link is turning into a regular directory when it is unpacked. I also tried just unpacking it using "jar xf myapp.war" and it looses the symbolic link also.
    Is there any way to retain the symbolic link information in a jar? Any other creative ways to accomplish what I am trying to do?
    Thanks,
    Saul

    Nevermind, I found a way to do it within Resin. It can map virtual directories through its config.
    Thanks

  • Does ucf.jar preserve symbolic links in native plugins

    Hi everybody,
    First of all, this question is not the same as:
    Does ucf.jar handle symbolic links?
    My question is: I have a native plugin for InDesign CC 2014 (.InDesignPlugin) on a Mac. I wish to package it (with some other stuff: another zxp containing Flex panels, and some Java jars) in a ZXP. To do so, there are two ways of doing it: using ucf.jar or using ZXPSignCmd.
    This post here decided me to use ucf.jar, because of this citation:
    "You may ask why the ucf.jar and not ZXPSignCmd: the reason is that, in order to be CS6 compatible, ucf.jar is the tool of choice."
    There are no explanation, and I decided to trust the author. Maybe is it an error?
    I am able to construct a ZXP and install it with the extension manager. But the installed plugin does not work well. The reason is (I'm pretty sure of it) all the symbolic links of the plugins were replaced by the target of the links. I say I'm pretty sure, because when I use directly the plugin before packaging it in the ZXP, everything is fine. The only difference I could find are these symbolic links that have been transformed.
    In parallel, I tried packaging the ZXP using ZXPSignCmd, and this seems to work fine. This surprised me, because of the link to the blog I mentioned above.
    My ZXP must work with InDesign from CS5 to CC 2014.
    The question is: how to handle symbolic links on mac with ucf.jar?
    Bonus question: why should I not use ZXPSignCmd?
    Thanks

    If the file exists, then the pointed-to files are packaged, instead of the symbolic link itself, which is not what I'm after either; this is a link which will be correct on the destination after the bundle is unpacked, but which may not yet be present on the system doing the packaging. I think this may be related to http://forums.adobe.com/message/4681087#4681087 , though it is not exactly the same problem.
    Perhaps to rephrase my question then:
    How may I package a symbolic link using ucf.jar?
    At the moment there are two options:
    • Destination pointed to by link does not exist -> failure with “file not found”.
    • Destination pointed to by link does exist -> package is built containing the destination file, not the symbolic link.
    Neither of these behaviours is what I want: I want to package the link!

  • Symbolic link error when exporting during heterogeneous system copy

    My enviroment is ECC6.0/Oracle 10.2.0.2/SUN Solaris 10 . I'm performing  heterogeneous system copy to Oracle 10.2.0.2/AIX 6.1 enviroment.
    I've succesfully exported & imported two systems ie DEV & Solutin Manager , but PRD system has an OS problem with symbolic links ie Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
    I want to export both ABAP & JAVA stack but only the java stack is getting  picked.
    Below  is part of the resultng sapinst.log 
    Thanks
    INFO 2011-09-05 10:44:30.573
    Execute step verifyJavaHome of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
    INFO[E] 2011-09-05 10:44:33.851
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/._), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:44:33.851
    FSL-02061  Link /._ is invalid: Unable to link a link to itself.
    INFO 2011-09-05 10:44:46.118
    Execution of the command "/usr/j2sdk1.4.2_09/bin/java -classpath /tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Mon Sep 05 10:44:45 EAT 2011
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=/usr/j2sdk1.4.2_09/jre/lib/sparc
    java.vm.version=1.4.2_09-b05
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=\:
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=unknown
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=/oracle/PRD/INSTDIR/sapinst_dir
    java.runtime.version=1.4.2_09-b05
    java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
    java.endorsed.dirs=/usr/j2sdk1.4.2_09/jre/lib/endorsed
    os.arch=sparc
    java.io.tmpdir=/var/tmp/
    line.separator=\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    os.name=SunOS
    sun.java2d.fontpath=
    java.library.path=/usr/j2sdk1.4.2_09/jre/lib/sparc/client\:/usr/j2sdk1.4.2_09/jre/lib/sparc\:/usr/j2sdk1.4.2_09/jre/../lib/sparc\:/tmp/sapinst_exe.29247.1315208256\:/usr/openwin/lib\:/usr/lib
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
    os.version=5.10
    user.home=/
    user.timezone=Africa/Nairobi
    java.awt.printerjob=sun.print.PSPrinterJob
    file.encoding=ISO8859-1
    java.specification.version=1.4
    java.class.path=/tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar
    user.name=root
    java.vm.specification.version=1.0
    java.home=/usr/j2sdk1.4.2_09/jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    java.vm.info=mixed mode
    java.version=1.4.2_09
    java.ext.dirs=/usr/j2sdk1.4.2_09/jre/lib/ext
    sun.boot.class.path=/usr/j2sdk1.4.2_09/jre/lib/rt.jar\:/usr/j2sdk1.4.2_09/jre/lib/i18n.jar\:/usr/j2sdk1.4.2_09/jre/lib/sunrsasign.jar\:/usr/j2sdk1.4.2_09/jre/lib/jsse.jar\:/usr/j2sdk1.4.2_09/jre/lib/jce.jar\:/usr/j2sdk1.4.2_09/jre/lib/charsets.jar\:/usr/j2sdk1.4.2_09/jre/classes
    java.vendor=Sun Microsystems Inc.
    file.separator=/
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeBig
    sun.cpu.endian=big
    sun.cpu.isalist=sparcv9vis2 sparcv9vis sparcv9 sparcv8plusvis2 sparcv8plusvis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
    INFO 2011-09-05 10:44:47.076
    Execution of the command "/usr/j2sdk1.4.2_09/bin/java -classpath /tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar:/tmp/sapinst_exe.29247.1315208256/JAR/sapxmltoolkit.jar -d64 com.sap.ins.j2ee.TestClassLoader" finished with return code 0. Output: CORRECT
    INFO 2011-09-05 10:44:47.572
    Execute step verifyPolicy of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
    INFO 2011-09-05 10:44:47.715
    Execute step setNWOption of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
    WARNING 2011-09-05 10:44:47.944
    Could not determine a valid JAVA_HOME directory from the environment.
    INFO 2011-09-05 10:44:48.86
    Execute step assignUsersToSapinstGroup of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:48.890
    Account sapinst already exists.
    INFO 2011-09-05 10:44:48.894
    Account prdadm already exists.
    INFO 2011-09-05 10:44:48.917
    Account oraprd already exists.
    INFO 2011-09-05 10:44:49.73
    Execute step useDatabaseMethod of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:49.217
    Execute step setDatabaseMethodOra of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:49.341
    Execute step setDatabaseMethodDB6 of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:49.480
    Execute step mainExportParameters of component |NW_Export|ind|ind|ind|ind|0|0
    INFO[E] 2011-09-05 10:44:52.251
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/._), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:44:52.252
    FSL-02061  Link /._ is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.760
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/cntrl), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.761
    FSL-02061  Link /oracle/PRD/cntrl is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.762
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/._), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.762
    FSL-02061  Link /oracle/PRD/._ is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.763
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/sdubhibq), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.764
    FSL-02061  Link /oracle/PRD/sdubhibq is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.765
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/sduccayx), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.765
    FSL-02061  Link /oracle/PRD/sduccayx is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.766
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/inventory), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.767
    FSL-02061  Link /oracle/PRD/inventory is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.768
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/OPatch), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.768
    FSL-02061  Link /oracle/PRD/OPatch is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.769
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/assistants), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.770
    FSL-02061  Link /oracle/PRD/assistants is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.771
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/bin), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.772
    FSL-02061  Link /oracle/PRD/bin is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.773
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/clone), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.773
    FSL-02061  Link /oracle/PRD/clone is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.774
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/crs), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.775
    FSL-02061  Link /oracle/PRD/crs is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.776
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/css), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.777
    FSL-02061  Link /oracle/PRD/css is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.778
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/ctx), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.778
    FSL-02061  Link /oracle/PRD/ctx is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.779
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/dbs), line (346) in file (syuxclink.cpp).

    Hi,
    In PRD system, u might have craeted many symbolic links in /oracle/PRD fileystem . This should be avoided. Symbolic link should not be created in /oracle/PRD ...
    Please check why symbolic links are created and get help from System Operation team . Please becareful to unlink symbolic links that are created by non-SAP. Make sure to perform full  offline backup .
    Please get the help from Unix System Operation team. Also it does not makes any sense to increase value of Unix parameter for maximum symbolic links.
    Regards
    APR

  • Clustering, unix symbolic links, and war files

              Hello,
              we use symbolic links in our web application to a large shared storage device.
              This works when running a single server, when the application is not a war file.
              When we cluster the application, the admin server creates a war file, blindly
              follows the symbolic links and tries to include all files in the shared storage
              device. Bad!
              Is there a work-around to this problem in a clustered configuration?
              -Thanks-
              

              hi,
              can you tell me know you deploy your app to the cluster member
              manually? do you run each member as an admin server? how do
              you group them into a cluster then?
              thanks,
              yan
              "Philippe Lantin" plantin_AT_cobaltgroup.com wrote:
              >
              >
              >Yes, this method works. I did want to keep a central admin server to
              >avoid have
              >multiple configuration files, and deploy new code to only one location.
              >I suppose
              >I could do this via a shared drive.
              >
              >I have an open case with BEA on this issue. The root of the problem appears
              >to
              >be that the jar format isn't equipped to deal with symbolic links. Webapps
              >which
              >are exploded in directories lose their symbolic links when packaged in
              >a war.
              >
              >Thanks,
              >
              >Philippe Lantin
              >
              >"Cameron Purdy" <[email protected]> wrote:
              >>I've never used that centralized deployment feature; rather I've always
              >>configured each of the cluster members manually, partly because of the
              >>bug
              >>in the admin server in 6.0 (?) that would not allow it to deploy to
              >the
              >>cluster.
              >>
              >>Can you try to deploy the application manually?
              >>
              >>Peace,
              >>
              >>--
              >>Cameron Purdy
              >>Tangosol Inc.
              >><< Tangosol Server: How Weblogic applications are customized >>
              >><< Download now from http://www.tangosol.com/download.jsp >>
              >>
              >>
              >><Philippe Lantin plantin_AT_cobaltgroup.com> wrote in message
              >>news:[email protected]...
              >>>
              >>>
              >>> Hi,
              >>>
              >>> our web application is not a war when we use a single server. We simply
              >>use a
              >>> directory under "applications". This method works correctly with symbolic
              >>links
              >>> under weblogic v.6.1.
              >>>
              >>> To test our application in the cluster, we use the previous single
              >>server
              >>as the
              >>> administration server, leaving the application directory intact. We
              >>create
              >>a cluster
              >>> definition with it's target members using this web application.
              >>>
              >>> When we start up the cluster members, the administration server creates
              >>a
              >>war
              >>> file that is distributed to to cluster members. This is not somthing
              >>we
              >>control,
              >>> this is automatically done by weblogic.
              >>>
              >>> This is where we run into trouble. When the admin server creates the
              >>war
              >>file
              >>> to distribute to the cluster target, it follows the symbolic links
              >>and
              >>recursively
              >>> includes all files and directories. This creates a huge war file,
              >and
              >>is
              >>obviously
              >>> not the behavior we are looking for.
              >>>
              >>> Creating a war file manually doesn't help, since jar doesn't support
              >>symbolic
              >>> links.
              >>>
              >>> Thanks,
              >>>
              >>> Philippe Lantin
              >>>
              >>>
              >>> "Cameron Purdy" <[email protected]> wrote:
              >>> >I don't understand at which point you are running into a problem.
              >>> >
              >>> >> we use symbolic links in our web application to a large shared
              >storage
              >>> >device.
              >>> >
              >>> >That is not uncommon, for example to use a Sun storage box or EMC
              >>with
              >>> >some
              >>> >fault tolerant characteristics to host the application images etc.
              >>> >
              >>> >> This works when running a single server, when the application is
              >>not
              >>> >a war
              >>> >file.
              >>> >
              >>> >Do you mean when it is "exploded"? Does it work with a single server
              >>> >when
              >>> >the app is a war file?
              >>> >
              >>> >> When we cluster the application, the admin server creates a war
              >>file,
              >>> >blindly
              >>> >> follows the symbolic links and tries to include all files in the
              >>shared
              >>> >storage
              >>> >> device.
              >>> >
              >>> >This is the part that I don't follow. Are you using 6.1sp1? What
              >are
              >>> >the
              >>> >steps that you are taking with the admin server?
              >>> >
              >>> >Peace,
              >>> >
              >>> >--
              >>> >Cameron Purdy
              >>> >Tangosol Inc.
              >>> ><< Tangosol Server: How Weblogic applications are customized >>
              >>> ><< Download now from http://www.tangosol.com/download.jsp >>
              >>> >
              >>> >
              >>> ><Philippe Lantin plantin_AT_cobaltgroup.com> wrote in message
              >>> >news:[email protected]...
              >>> >>
              >>> >>
              >>> >> Hello,
              >>> >>
              >>> >> we use symbolic links in our web application to a large shared
              >storage
              >>> >device.
              >>> >> This works when running a single server, when the application is
              >>not
              >>> >a war
              >>> >file.
              >>> >> When we cluster the application, the admin server creates a war
              >>file,
              >>> >blindly
              >>> >> follows the symbolic links and tries to include all files in the
              >>shared
              >>> >storage
              >>> >> device. Bad!
              >>> >>
              >>> >> Is there a work-around to this problem in a clustered configuration?
              >>> >>
              >>> >> -Thanks-
              >>> >>
              >>> >>
              >>> >>
              >>> >
              >>> >
              >>>
              >>
              >>
              >
              

  • HELP! Creating symbolic link to home folder for installer DMG

    Guys,
    I'm in a bit of a bind. I need to create a symbolic link for an installer DMG to distribute a communal Bookmarks.plist to all the computers in my department. Unfortunately 'ln -s ~/Library/Safari /Volumes/Bookmarks/.' doesn't do the trick! While it creates an alias that functions on my machine, when that DMG is compiled and distributed from the original sparse image, the alias fails to link to that location on whoever attempts to mount the DMG. Any ideas?? Thanks!

    Symbolic links break when you change the machine on which they were created. Use an standard Mac alias instead as I believe they will work as expected.

  • How can I stop from getting the "Firefox is already running" error message when trying to open links and FF has already been opened through a symbolic link?

    I use symbolic links and program shortcuts as a way to easily open different Firefox profiles ie. one for casual/personal use and another for work. This works well, but I get the "Firefox is already running, but is not responding" error message if I try to open external links with FF as my default browser. FF is actually open and running fine, but I guess it doesn't acknowledge this fact because of how I'm originally starting the process.
    I wasn't able to add the symbolically linked executables to the default program pane. Is there a way to bypass this error or other way to fix this?
    The solution to the question linked below is what I'm using to open the different FF profiles.
    http://superuser.com/questions/255312/pin-same-app-multiple-times-in-windows-7

    hello, this is probably happening when you run the default profile with the -no-remote switch.
    http://kb.mozillazine.org/Profile_in_use

  • Can I Create A Symbolic Link to folders stored on an SMB Share folder?

    Hello,
    I am very new to Unix and was hoping that someone could point me in the right direction with regards to Symbolic links and an SMB share folder ....
    Have purchased an ext. LAN Drive enclosure (http://www.macpower.com.tw/products/hdd3/pleiades/pd_usblan) which connects to my wireless router via ethernet like my G5 (main Mac) - our iBook connects via Airport. I have copied all my general documents/files to the SMB share folder on the ext. drive so that I can access them from the G5 and also the iBook.
    However I'd also like to be able to store my actual Mail folder (/Users/Mark/Library/Mail/), , Safari folder (/Users/Mark/Library/Safari) + my Address Book and other folders sitting in the Application Support folder on my SMB share so all important docs/folders are in the one place. I've tried storing these folders on the SMB share and putting an Alias to these back in Users/Mark/Library/Mail etc but of course an Alias doesn't work.
    Question 1: Can I create a symbolic link to these files if these are stored on an SMB share folder? If so, could you please tell me exactly what I'd need to type into Terminal? My SMB Share path is smb://STORAGE-XXXX/MARK
    I have copied my iPhoto library and iTunes library to the SMB share and are working fine.
    Question 2: Is it possible/worth attempting to move my whole home folder to the SMB share folder? Ideally, I'd like to be able to access my Mail from the iBook as well. If I could log into either the G5 or the iBook and access my latest Mail, Address Book and other Application Settings, that would be perfect. Would this be possible?
    Thanks
    Mark.
    Dual 1.8GHz G5 (Rev.B), 2Gig RAM, 9600XT   Mac OS X (10.4)  

    Dear Mark,
    Yes you can. The command to create a link will look something like this:
    $ ln -s thisFolder /Users/mark/thatFolder
    I did this while I was hosting a microsoft based game. This put all of the players into a common directory.
    SMB just resolved the link and everything worked fine.
    However, as I understand it, some other applications do NOT work very well with links. As I have NOT tried it with other applications, I fear I can be of NO help to you in this matter.
    The only way to find out which applications work with links is to try them and see what happens.
    Best of luck,
    Kurt

  • Maintaining Multiple Arch Installs, Symbolic Links, BTRFS

    Hi again.
    A quick update on my previous post (https://bbs.archlinux.org/viewtopic.php?id=164627). The GRUB problem I was having seems to have stopped. I got a very useful recommendation regarding pacman and XBMC still hasn't been fixed, but is fully usable with the workaround I am using and have just gotten used to it so it's not so much of an issue now. I think now that it should be marked as solved but how do I do that? Was looking around but guess I'm just missing it.
    Anyway now I have a few more issues, or more just questions I guess that I would like help on. Recently I found an old laptop of mine and so to learn more about the Arch system I decided to try and install Arch. Now this laptop is around 5-6 years old and I haven't been able to get WiFi working fully for around 3 years and eventually upgraded 2 years ago to my current laptop. The WiFi was always 'soft-locked' until after about 4-5 restarts (in windows it was fine, but any Linux Distribution post Ubuntu 10.10 had the same issue). The issues still remains in other distributions even after "rfkill all". In Arch ever since running that command (the first boot from install media the issue occurred) this laptops WiFi has been brilliant. I also installed XFCE4 desktop for speed of set up. Now I'm looking to give my laptop to my younger brother before he heads of to University in September until he can afford a new one (or he breaks this one - somehow his laptops never last), as this old one now runs better than it ever did on Windows Vista. My girlfriend is also looking for me to install Linux again on her laptop (we used WUBI in the past) but a full install since her Windows Vista laptop is near unusable in Windows. So far I have got hamachi set up between my new and old laptop, this gives static IP addresses and will allow me to SSH into the laptop for upgrades every so often. I'm planning to do the same for my girlfriends laptop. Would I be stupid to do this via Arch? I've heard it breaks often and I don't want to have to be doing fixes for other peoples laptops as I won't have the time to do so. I guess the reason I want to use Arch is both laptops are quite old and Arch has breathed new life into my old one.
    Secondly I have symbolic links set up in my "Music" and "Video" folders in my home directory to their counterparts in my Windows partition. However my music player "Clementine" doesn't find every album in the music folder. Does symbolic links have "flaws" like this or is it more likely to be my music player behaving badly with symbolic links? I would try another music player but I can't seem to find one which plays FLAC files with external / embedded .cue files so can't really test this out. I can of course link directly to the location but I thought I would ask, just to learn more I guess.
    Now when I installed Arch using BTRFS file system I didn't know that I had to mount using compression immediately, I thought I could add it to the fstab at a later point - obviously not. Now I found a command which will defragment my drive and supposedly compress everything. However this command doesn't make any sense to me and I don't want to just run it without knowing what it does. Could anyone other me any insight into this please? Also does defragmentation after the fstab mount options have been added cause the compression?
    "find -xdev -type f -exec btrfs fi defrag '{}' \;"
    or I also found
    "btrfs filesystem defragment ~/stuff"
    Thanks for any help, I understand this post is quite long so I really appreciate it.
    Last edited by BradPJ (2013-06-13 10:19:47)

    Ah right thanks. I thought as much which is why I asked before I did so, I'll find another distribution. Just where I've been running Arch for a few weeks now and haven't had to do any maintenance at all really, but weren't too sure what I'd be in for in the long-run. I mean to be fair I was always planning on another distribution but as I was playing around at first on the old laptop I ended up with my current way to SSH in and just wondered if it would be viable to do it this way.
    I knew it would be a driver issue at the core of my problem, just weren't too sure if it something else could of been affecting it. Guess I'll try and find another distribution which runs near as new software to Arch as possible as it seems the issue has been fixed in newer versions of the kernel and drivers. Granted the old laptop had been unused for around a year so any update in the last year could of fixed it in this case. Thanks for your input!
    Last edited by BradPJ (2013-06-13 11:35:16)

  • Support symbolic links (symlinks or Unix's 'ln -s') in the iTunes Media folder hierarchy

    As of iTunes version 12.0.1.26, iTunes has partial support for symbolic links in the iTunes Media folder hierarchy. I'd like Apple to enhance iTunes to treat any symlink or folder alias within the hierarchy the same as folders. With the Unix core under OS X, there is no clear reason to not support this feature.
    Why is this important? As more of us try to use iTunes as the single repository of all media, the library size becomes larger than is possible to hold on a single partition. The simplest and most convenient solution is to allow users to move large folders (e.g. Music, or Movies) to a different drive or partition, then put an alias or symlink in the original location within the iTunes hierarchy. Users with large collections or small partitions may need to split multiple times. Other users may want to put the bulk of their media on their home/work NAS and only keep a portion on their laptop for mobile access (think long overseas flights), but not have to constantly fiddle with iTunes.
    The point is not whether any one of these scenarios may be supported today though a crude hack or third-party tool. Support for symlinks would be relatively easy for Apple to implement and extremely flexible for advanced users.
    This is partially supported today. For example, if you do what I described above, iTunes will play all of your existing media. The part that is definitely broken is when you try to use the "Automatically Add to iTunes" folder, iTunes will not copy the file to a location under a symlink or alias. The new file will sit in the "Automatically Add to iTunes" folder and iTunes will generate multiple instances/tracks inside iTunes (e.g. movies appear in the "Unwatched" tab). While there are ways to work around this limitation, they are tedious and ultimately unnecessary if full symlink/alias support is provided.
    Best,
    Pete

    Click here and fill out the form.
    (119798)

  • Can I use symbolic links to share abook.mab file for two users

    If I delete any of the .mab files from one user profile and replace it with a symbolic link that points to the same file in the other profile will this synchronise my address books for the two profiles. I have win7.
    The object is to have two Windows User accounts sharing all the same email data. I have already have them pointed at the same message store.
    I also wish to know if deleting a .mab file will only cause it to be re-created.
    I am hesitant to experiment.
    Thanks

    Deleting any of the two default mab files, abook.mab (Personal Address Book) or history.mab (Collected Addresses) will result in new, empty files with these names being recreated automatically when TB is restarted.
    There are some ideas for sharing address books here:
    http://kb.mozillazine.org/Sharing_address_books

  • Does Java/JVm have a way to ditinguish between real files and Symbolic link

    Hello guys,
    I am using java.io.File.listFiles to list files in a directory. I have a symbolic link in the directory. the "listFiles" listing symbolic file contents too. As the real directory Symbolic link pointing is huge, the application taking too much time to load. is it a normal behaviour? are there any work arounds?

    Short version: If getCannonicalPath() and getAbsolutePath() return different values, then the file you look at is a symlink.
    [longer version|http://www.idiom.com/~zilla/Xfiles/javasymlinks.html]

  • Symbolic Links do not work for Application.cfm in CF10

    I have a Web, that use a symbolic link for centralized code.
    The Application.cfm, stored in the original web-root, will not read from code
    in the linked directory.
    Thank you for your assistance.

    Adam,
    it seems to be a bug.
    The "Application.cfc/Application.cfm lookup order" in the ColdFusion Administrator seems not functional as expected. I did several tests and it happens not only at symbolic links. This happens on every subdirectory.
    Am I wrong, when I expect, that the "highest" Application.cfm found in a tree should be executed?
    Example:
    Application.cfm
    aaa.cfm
    "subdir1"                                 "subdir2"
    bbb.cfm                                   Application.cfm
                                                    ccc.cfm
    Settings in the ColdFusion Administrator
    Default order:
    - aaa.cfm: should execute the Application.cfm in root (/) only.
    - bbb.cfm: should execute the Application.cfm in root (/) only.
    - ccc.cfm: should execute the Application.cfm in subdir2 only.
    Until Webroot
    - aaa.cfm: should execute the Application.cfm in root (/) only.
    - bbb.cfm: should execute the Application.cfm in root (/) only.
    - ccc.cfm: should execute first the Application.cfm root (/) and then in subdir2
    In Webroot
    - aaa.cfm: should execute the Application.cfm in root (/) only.
    - bbb.cfm: should execute the Application.cfm in root (/) only.
    - ccc.cfm: should execute the Application.cfm in root (/) only.
    Am I wrong with this?
    In my case, only "In Webroot" work as expected.
    Torsten

  • Symbolic Link to Encrypted Folder disappear on reboot

    Good day
    I have a symbolic link from an encrypted folder "/Volume/important Files/" that point to Dropbox folder
    ln -s /Volumes/important\ Files ~/Dropbox/important
    I have additional 'ln' to other files that are NOT encrypted (e.g. a docs folder, some pictures, SecureCRT sessions etc).  These symbolic links are fine, however the symbolic link for the encrypted folder never survives a reboot.
    I was wondering if anyone knew the order of operation if I set the encrypted folder to auto mount (which it is not doing now) in relation to the symbolic link. 
    Thanks

    Have you tried putting the link in a different location?
    the disappearance might not be tied to the encrypted folder as much as the Volumes folder maybe getting "cleaned up" removing mount points for nonexistent shares.

Maybe you are looking for

  • Can not sort the files in JFileChooser if the files are from remote machine

    Hi All, Let me set the context of the question. I have extended the JFileChooser to support the listing/view of files.dirs etc of remote location through CORBA.To achieve that i have customized my FileSystemView to support it. In general ,the current

  • Using COUNTIF formula using controlled data in cell pop-up menu

    I'm making a spread sheet that involves adding up the number of times a certain item occurs in a log. A pop-up menu is used in the cell to control the inputs of the log. I'm not sure how to go about using the COUNTIF function to count the number of t

  • Proximity sensor on 5c doesn't detect face

    My proximity sensor on my iPhone 5c has stopped working during phone calls. There is no case on the phone. The sensor still works because when I cover it with my finger the screen goes black, but simply bringing the phone to my ear isnt enough to tur

  • PM Role - Order - Authorization Data

    Hello, I create a role, can define notifications' attributes as i want. But i could not define orders'. For example, my order is Z001 and my user will change and display but not create the order. From pfcg --> Change Authorization Data i couldn't fin

  • How to manage the regulatory data import into specification database?

    Hi experts, We have a EH&S implementation project for a distribution company which has no other sap module and very limited scope. They want to get the 3E data, compare and update and send/updates with vendors and customers and also inteface the data