03-18-2014
f is a variable with scope limited to the current process. export f changes the scope to include all descendants of the current process.
The variable is visible to the "grandson": find ... -exec [child of a child]
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I find all symbolic links across the network to a directory (2 Replies)
Discussion started by: mehtad
2 Replies
2. AIX
I am linking a directory as follows:
ln -sf /home/xxx/userid/real_files/* /home/xxx/userid/linked_files
This gives me symbolic links for all the files in the real_files directory in the linked_files directory. My question is, if I go and remove a file in the real_files directory and then go... (1 Reply)
Discussion started by: rcarnesiii
1 Replies
3. Shell Programming and Scripting
I'm writing a ksh script which will reference a text file I have to create symbolic links for my application:
--file contents--
Link Directory Link Source Link Name
/users/05/dwisconbug bin link2bin
Now, this should create the following... (1 Reply)
Discussion started by: dwisconbug
1 Replies
4. Shell Programming and Scripting
Hi all,
This is my first message in this forum.
I'd like to know if there is a nice way to get the complete path from a symbolic link.
Example:
When I do a ls -ltr I see this output.
lrwxr-xr-x 1 mmmm users 66 Sep 4 09:58 LINK_SEND ->... (4 Replies)
Discussion started by: rodrimuino
4 Replies
5. Solaris
Hi,
I have a quick question with regards to creating symbolic links. Would creating a symbolic link from one directory to a file in another cause any issues for users that are currently logged into the box. I don't believe it will unless they are using the file in question, but I would like... (2 Replies)
Discussion started by: Chains
2 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I have scoured the entire forum for this but to no avail unfortunately. Basically, I would like to remove my symbolic link from my folder name i.e.
foldername -> /a/b/c/d/f
where f is indeed a folder. I have tried rmdir but this does not work and in actual fact deletes the... (4 Replies)
Discussion started by: cyberfrog
4 Replies
7. UNIX for Dummies Questions & Answers
I've just started using UNIX in a Linux vmplayer. I'm trying to run the command:
ln -s `pwd`/$1 `python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`/$1
in a script from an online tutorial, but I keep getting an error message:
ln: creating symbolic link... (1 Reply)
Discussion started by: ChipT
1 Replies
8. Shell Programming and Scripting
Hello,
the install routine puts automatically the servername "SERVER" in the symlink like:
hello.txt --> /SERVER/usr/lpp/hello.txt
world.txt --> /SERVER/usr/lpp/world.txt
... but i need to change this symlinks (without servername) to:
hello.txt --> /usr/lpp/hello.txt
world.txt -->... (3 Replies)
Discussion started by: smitty11
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a file with more than 1 layers of soft links for it. For ex.
ls -la .profile
.profile@ -> /home/act/.profile_abc
ls -la
/home/act/.profile_abc@ -> .profile_final
I want to get the name of the last file (i.e. .profile_final) when I refer to .profile using shell script. I... (2 Replies)
Discussion started by: deo_kaustubh
2 Replies
10. Solaris
Soft link,Hard link brief explanation (1 Reply)
Discussion started by: RAJU KAVATI
1 Replies
LEARN ABOUT FREEBSD
setpgid
SETPGID(2) BSD System Calls Manual SETPGID(2)
NAME
setpgid, setpgrp -- set process group
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
setpgid(pid_t pid, pid_t pgrp);
int
setpgrp(pid_t pid, pid_t pgrp);
DESCRIPTION
The setpgid() system call sets the process group of the specified process pid to the specified pgrp. If pid is zero, then the call applies
to the current process. If pgrp is zero, then the process id of the process specified by pid is used instead.
If the affected process is not the invoking process, then it must be a child of the invoking process, it must not have performed an exec(3)
operation, and both processes must be in the same session. The requested process group ID must already exist in the session of the caller,
or it must be equal to the target process ID.
RETURN VALUES
The setpgid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate
the error.
COMPATIBILITY
The setpgrp() system call is identical to setpgid(), and is retained for calling convention compatibility with historical versions of BSD.
ERRORS
The setpgid() system call will fail and the process group will not be altered if:
[EINVAL] The requested process group ID is not legal.
[ESRCH] The requested process does not exist.
[ESRCH] The target process is not the calling process or a child of the calling process.
[EACCES] The requested process is a child of the calling process, but it has performed an exec(3) operation.
[EPERM] The target process is a session leader.
[EPERM] The requested process group ID is not in the session of the caller, and it is not equal to the process ID of the target
process.
SEE ALSO
getpgrp(2)
STANDARDS
The setpgid() system call is expected to conform to ISO/IEC 9945-1:1990 (``POSIX.1'').
BSD
February 8, 2004 BSD