symlink

How to create a symbolic link with SCons?

I'm using SCons for building a project and need to add a symbolic link to a file it is installing via env.Install. What command(s) will make a link that's the equivalent of running ln -s on the command line? ...

How to determine which directory a link is pointing to using bash

With Bash scripting, is there a way to determine which directory a link is pointing to, then switch it to another directory based on the result? For example, say I have the two following directories: /var/data/1/ and /var/data/2/ I have a link to one of them, say, data_link and it is currently linked to /var/data/1/ When the script i...

How can I make an alias (or shortcut, or symlink) inside a subversion repository?

Let's say I have a "releases" subdirectory in my svn repository, where I have multiple releases of the project. I would like to have a "latestRelease" alias, which would point to whatever the current release is. Is there any way to do this, without actually copying the latest release branch? I am not talking about checking symbolic ...

Why does symlink create an unnecessary "folder"?

Say the root folder on my server is /home/bong/www/, so mydomain.com will serve up index.php from /home/bong/www/. Then I cloned an hg repository and placed it at /home/bong/hg/hgrepo/. When I am on /home/bong/ I created a symlink as follow so that going to mydomain.com will serve up content from the hg/hgrepo directory: ln -s hg/hgre...

Rails Gems Symbolic Links Setup on Mac OS X

I have Rails 3, and have been using a Gemfile to install several gems like annotate and rspec-rails Problem is in all the tutorials, it says to type things like "annotate" in the command line but it doesn't work "command not found" this make me believe that Symbolic Links are not in place to allow me to run/use the gems in terminal. Ho...

How to make symbolic link with cywin in window 7

Within these day I have tested to write Android application with native code C/C++. The problem is in making symbolic link when using Android NDK. After making googling, some say to use cywin. I have installed it now. Please tell me how to make symbolic link with cywin in window 7. Thanks in advance, ...

WriteFile for a symbolic link which points a network volume's file.

I made a symbolic link file. mklink C:\LinkFileToPointNetworkFile.txt Z:\NetworkFile.txt Then I opened and read the file. Good. It works well. The target file's data has been read. -Of course, I didn't use FILE_FLAG_OPEN_REPARSE_POINT But if I try writing to the file, I get a 'access is denied'. This is not what I expected. Why ...

Webdav link resource

Is it possible to create Webdav resource, that would act as a symbolic link on unixes? I.e. client would understand that this resource is a link, and that it should in fact work with some other resource? ...

Python os.walk + follow symlinks

How do I get this piece to follow symlinks in python 2.6? def load_recursive(self, path): for subdir, dirs, files in os.walk(path): for file in files: if file.endswith('.xml'): file_path = os.path.join(subdir, file) try: do_stuff(file_path) exce...

How to open a symlink without the terminal window popping up?

How can I open a symlink without the terminal window popping up? Moreover, when I close the terminal window, the application quits as well. I tried using nohup open symlink1 without any results. I have made a symlink to the iTunes executable (the one inside the contents package, NOT the iTunes.app) which I want to be able to open by ...

Upload iphone app error "The CodeResources file must be a symbolic link ...."

Hi, I have been working on this issue for over a week with no luck and tried every possible solution e.g. delete and reinstall certificates, profiles, and everything seems to be ok. My problem show up when I try to upload with Application Uploader where it shows ""The CodeResources file must be a symbolic link .... " error , so I check...

creating symbolic link from select file type in a folder

i have a folder with many different types of files...but i want to create a symbolic link of only files that are of a certain file type (the data files with extension *.txt.mrg) in this case...i want to have the same file names for the symbolic links as the original files...how do i do this? i want to be able to create all the symbolic l...

Symbolic link for html file with an embeded flash swf located in different directory in redhat or centos Linux

Hi All, I have created a html index.html which has an embeded code linking to index.swf in an folder both these file are in the path say /home/user-name/ When i created a symbolic link to index.html in the path /home/user-name/Desktop . when i click on the symbolic link index.html file it opens in the browser but the flash file inde...

How do you unlink a symlink created with Microsoft's linkd.exe tool?

I'm using Microsoft linkd.exe tool to create symlinks, but then I typed linkd -d and it created a link called "-d" now I cant remove "-d" LOL this sucks. So i renamed it to ddd so it wouldnt think it was an option. But I still need to know how to unlink things =/ ...

How to make Ruby's Find.find follow symlinks?

I have a file hierarchy and some of the sub-directories are relative symlinks. I am using Ruby's Find.find to crawl through these dirs and find some specific files. However it's not looking into any directory which is a symlink (it follows files which are symlinks). Looking at the source code it seems the problem is because it's using F...

man 2 stat - how to figure out if a file is a link

I have the below code only a part of it is shown here and I am checking if a the type of file. struct stat *buf /* just to show the type buf is*/ switch (buf.st_mode & S_IFMT) { case S_IFBLK: printf(" block device\n"); break; case S_IFCHR: printf(" character device\n"); break; case S_IFDIR:...

How to rename a directory via its sysmlink ?

I have this : ubuntu:~/tmp$ ls -l total 4 drwxr-xr-x 2 abc abc 4096 2010-10-23 14:13 dir1 lrwxrwxrwx 1 abc abc 4 2010-10-23 14:13 dirln -> dir1 dir1 is empty I want to rename dir1 to dir2 via dirln, like this: ubuntu:~/tmp$ mv dirln/ dir2 mv: cannot move `dirln/' to `dir2': Not a directory This gives error. Can I rename a direc...

Does cygwin understand NTFS junction points?

Does cygwin (1.7.x) understand Windows NTFS junction points (as created by mklink in Win7/2008 or sysinternals' junction.exe)? How do they differ from a symbolic link as created by "ln -s "? ...

is there a way to change the target of symlink /proc/self/exe?

hi all: recently i'm working on make checkpoint on linux process and encountered a problem,it looks like that when i munmap memory map of the executable to current process,the symlink /proc/self/exe is dead.what i want is to make this symlink pointing to a other executable(the one for my resumed processs),is that possible?i tried del...