From: Lanikai <samotna.wisnia@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How can I create "dynamic" link?
Date: Wed, 11 Aug 2010 00:18:06 +0200 [thread overview]
Message-ID: <4C61D01E.20101@gmail.com> (raw)
In-Reply-To: <4C61BF5E.5070204@gmail.com>
On 08/10/2010 11:06 PM, Jarry wrote:
> Hi,
> I am facing this problem: I have subdirectory, let's say
> "/some/dir". I would like to create some kind of "dynamic"
> and "preliminary" link, so that any future subdirectories,
> created later in /some will in fact be links, pointing to
> /some/dir.
>
> So if later any user does:
> cd /some
> mkdir whatever
>
> There should not be subdirectory /some/whatever, but actually link:
> /some/whatever -> /some/dir
>
> Is it possible?
>
> Jarry
>
Hello,
this is probably not an answer for your question but... You can achieve
this in different way - write small script and after this use some
program (for example cron) which will execute that script every few
seconds/minutes. The script may remove every empty directory located in
/some (excluding /some/dir) and create a link to it.
Regards, Paul.
next prev parent reply other threads:[~2010-08-10 23:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-10 21:06 [gentoo-user] How can I create "dynamic" link? Jarry
2010-08-10 21:56 ` [gentoo-user] " Nikos Chantziaras
2010-08-10 22:09 ` [gentoo-user] " Bill Longman
2010-08-11 6:54 ` Alan McKinnon
2010-08-10 22:18 ` Lanikai [this message]
2010-08-11 3:12 ` [gentoo-user] " Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C61D01E.20101@gmail.com \
--to=samotna.wisnia@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox