Ive got multiple PCs, sharing an NFS mounted home dir. For certain apps I would like to keep the config files host specific. Easy solution is to create symlinks to local folders for configs. Ideally I would still want the .config files to reside in the user home folder.
Is it possible to create a symlink with a variable in its name that where the variable is expanded when the link is traversed, rather than when the link is created.
Very simple answer to that I'm afraid: No. A symlink is not dynamic like that in any way.
Why not just handle the dir in /etc/profile? That's what it's there for.
Hello All,
Assuming i have a thousand symlinks under directory /mydir (and its sub-dir) such as:
mysymlink1 -> ../../../myfoo/mysymlink1
mysymlink2 -> ../../../myfoo/mysymlink2
How can I search the string "myfoo" and replaced with "yourfoo" such that after the operation is complete the... (2 Replies)
Please don't laugh or call me a fool...
I'm trying to set up a script that will go through my Music File directory and generate a set of symbolic links in a directory called "What's New". Within that directory there will be a "30 Days", "3 Months", "6 Months" and "A Year" directories. Within... (0 Replies)
I create the tar file from / like so:
tar cEhf name.tar usr/us
And this creates the tar with the links intact. The problem is that this tar is going to be used for testing, so we want the links to point to the files in the tar. But when I extract the tar into /tmp, I get /tmp/usr/us/... as I... (2 Replies)
I need to have my script know what directory it's in, even if it's run from a symlink located elsewhere. Here's what I've come up with, for the benefit of anyone with a similar need, but I'm also interested to know if there's a more elegant solution. I'd rather not get into awk-land, but I couldn't... (2 Replies)
Hello,
I have inherited an old Solaris box and I have to copy all of its files onto another machine, a Centos Box. The Solaris box it so ancient is does not have rsync, scp or any other useful copy functions. I tried using RCP but it handles symlinks terribly: Extraneous data is written to my... (1 Reply)
Hi,
My first post here:
Was looking if someone can help enhancing my code.
I am limited to sh or ash shell (android / busybox)
I made a script to look for busybox symlinks, backup them and delete them
I have these questions about the below code:
- busybox tar do not has the options... (2 Replies)
So i have read the man pages a few time. Searched google but I am not quite sure i understand all the lingo.
What i want to do is list all files on / except i dont want any symlinks (because if I am searching / I will find the "true" file...correct?)
So there is the -P, -H, and '-type l'... (2 Replies)
Hi,
I use rsync to move from source to target, but there are cases that I need to exclude:
Suppose in my file system, I have a soft link ~/data -> /media/volgrp/data.
Under data folder, there is a file hello.txt.
After moving command "rsync --remove-source-files -aH --force ~/data/... (3 Replies)
I wrote this code, questions follow
#! /bin/bash -f
# Purpose - to show how if syntax is used within an awk
clear;
ls -l;
echo "This will print out the first two columns of the inputted file in this directory";
echo "Enter filename found in this directory";
read input;
... (11 Replies)
Discussion started by: Seth
11 Replies
LEARN ABOUT DEBIAN
jh_generateorbitdir
JH_GENERATEORBITDIR(1) Javahelper JH_GENERATEORBITDIR(1)NAME
jh_generateorbitdir - Creates and populates an orbit dir used by pde-build for third-party jar files.
SYNOPSIS
jh_generateorbitdir [debhelperoptions] [--orbit-dir=dir] [orbit-dep[...]]
DESCRIPTION
jh_generateorbitdir is a javahelper program that handles creation of an orbit dependency dir. This directory has to be populated with non-
eclipse jar files. However, eclipse refers to these jars by their "symbolic name". jh_generateorbitdir can extract this name from the jar's
manifest (provided it has the OSGi metadata) and create a symlink to it.
jh_generateorbitdir will replace regular files with symlinks if they are present in the orbit dir and clash with the name of one of the
orbit jars. If an orbit jar name clashes with a symlink in the orbit dir, then jh_generateorbitdir will assume that the given jar has
already been symlinked correctly. In this case the jar file is still recorded in the cache (see below).
jh_generateorbitdir will also check the default installation for jar files on Debian systems (at the time of writing /usr/share/java), if
it cannot find the jar in the current dir.
Jar files replaced by jh_generateorbitdir will be recorded so that jh_installeclipse can replace with symlinks them post install.
FILES
debian/eclipse.orbitdeps
List of orbit dependencies - one per line. This can be used as an alternative to passing it per command line.
OPTIONS --orbit-dir=dir
Specifies the directory from where the orbit-dir is or should be created. Defauls to "debian/.eclipse_build/orbitdeps".
EXAMPLE
jh_generateorbitdir --orbit-dir orbit asm3 oro
Will generate a folder called orbit with two symlinks based on asm3 and oro's symbolic name.
SEE ALSO debhelper(7)
This program is a part of javahelper and uses debhelper as backend. There are also tutorials in /usr/share/doc/javahelper.
AUTHOR
Niels Thykier <niels@thykier.net>
COPYRIGHT AND LICENSE
Copyright 2010 by Niels Thykier
This tool is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2.
0.43 2011-04-29 JH_GENERATEORBITDIR(1)