05-24-2011
Context dependent symlinks require the support of either the kernel, or the filesystem kernel module. On Linux, as far as I know, only OCFS offers that support.
This User Gave Thanks to pludi For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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)
Discussion started by: nixrock
2 Replies
2. Shell Programming and Scripting
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)
Discussion started by: deckard
0 Replies
3. UNIX for Dummies Questions & Answers
Given a filename, is it possible to know haow many symbolic links are pointing to it? How can I tell? (1 Reply)
Discussion started by: ct1977
1 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: TreeMan
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: jeffclough
2 Replies
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: mojoman
1 Replies
7. Shell Programming and Scripting
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)
Discussion started by: Phil3759
2 Replies
8. Shell Programming and Scripting
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)
Discussion started by: nitrobass24
2 Replies
9. Shell Programming and Scripting
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)
Discussion started by: huangyingw
3 Replies
10. Shell Programming and Scripting
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
GFREG(1) GFREG(1)
NAME
gfreg - register a Gfarm file, Gfarm file fragments, or a Gfarm directory
SYNOPSIS
gfreg [ -p ] [ -h filesystem-node | -H hostfile | -D domainname ] [ -a architecture ] program ... gfarm-URL
gfreg [ -i ] [ -h filesystem-node | -H hostfile | -D domainname ] localfile ... gfarm-URL
gfreg -N total-num-of-fragments -I fragment-index [ -h filesystem-node | -H hostfile | -D domainname ] localfile ... gfarm-URL
gfreg -r [ -h filesystem-node | -H hostfile | -D domainname ] [ -a architecture ] [ directory | program | localfile ] ... gfarm-URL
DESCRIPTION
The first form copies and registers the program as a Gfarm file gfarm-URL in the Gfarm filesystem. When gfarm-URL is a directory, multiple
programs can be specified. After the registration, the gfarm-URL can be specified as a program name of gfrun(1) and gfmpirun_p4(1). With-
out the -p option, only executable file can be specified. With the -p option, non-executable file can be specified as well. Without the
-a option or the -h option, architecture of the program is assumed to be the same architecture as the client host on that gfreg(1) is exe-
cuted, which is obtained by the Gfarm metaserver.
The second form registers one or more localfiles as a single Gfarm file. Without the -i option, only non-executable file can be specified
as localfile. With the -i option, both excutable and non-executable file can be specified as localfile. The destination filesystem node
will be automatically selected by CPU load average. With any one of -h, -H, -D options, filesystem node can be limited.
The third form registers localfile as a file fragment of a Gfarm file. The total number of fragments and the fragment index are specified
by the -N option and the -I option, respectively. When gfarm-URL is a directory, multiple localfiles can be specified. The destination
filesystemnode will be automatically decided by CPU load average unless any one of -h, -H, -D options is explicitly specified. When the
gfreg command of this form is executed on a filesystem node, the local filesystem node is always selected rather than a remote filesys-
temnode. In this case, -h, -H, -D options help to store files dispersively.
The fourth form registers the directory as a Gfarm directory gfarm-URL, the program or the localfile as a Gfarm file gfarm-URL. If direc-
tory have some sub directories and/or files, they will be registered recursively. The non-executable file localfile will be registered as
a file has one fragment. A non-executable file in the directory will be registered in the same way. When gfarm-URL already exists as a
directory, multiple directories, programs, and localfiles can be specified and they will be registered in gfarm-URL. They can be mixed in
parameteres, while other forms inhibit this manner. If gfarm-URL does not exist, one directory or one program, or one localfile can be
specified and it will be registered as gfarm-URL. Refer to the first form's part above to specify filesystem node thatprogfarms and files
will reside with the -a option or the -h option.
OPTIONS
-f overwrites gfarm-URL even if it exits as a Gfarm file.
-? displays a list of command options.
Gfarm 05 April 2006 GFREG(1)