08-12-2009
Using "ps -ef" for example you should see one column with the PID and right next to it the PPID. The PPID is the PID of the parent process. So you can follow which process is related to another.
Killing the parent process should usually kill the the child processes too. Sometimes you have to kill them manually even if the parent is dead already.
Always try to stop your application 1st by it's usual way like via script or binary and then with a kill. Always try to just kill it before you do kill -9. kill -9 should be last resort.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies
2. Linux
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies
3. UNIX for Dummies Questions & Answers
We use a UNIX-based system (Lawson) at work and I was given this command to request a data extract from the db admin. The only thing I really understand is the last line as it appears to be joining the files created from the first three lines into one. Is there anyone who can help me breakdown the... (4 Replies)
Discussion started by: KGee
4 Replies
4. Shell Programming and Scripting
hi
i was moving a file from one directory to another with the following cmmand
mv /home/hsghh/dfd/parent/file.txt .
while doing so i i accidently
mv /home/hsghh/dfd/dfd .
although i gave ctrl c and terminate the move command some of the file are missing in the parent directory and... (1 Reply)
Discussion started by: saravanan71184
1 Replies
5. UNIX for Dummies Questions & Answers
Could you please explain me whats happening in the below code, appreciate your help, Thank you.
/product/apps/informatica/v7/pc/ExtProc/NewDAC/dacRecBuilder.sh
/product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_Pos_TradeInv_Records.out ... (5 Replies)
Discussion started by: Ariean
5 Replies
6. Solaris
Hi
I have a questions related 2 commands : 'du' and 'ls'.
Why is the difference between output of 'du' and 'ls' cmd's ?
Command 'du' :
------------------
jakubn@server1 /home/jakubn $ du -s *
4 engine.ksh
1331 scripts
'du -s *' ---> shows block count size on disk (512 Bytes... (5 Replies)
Discussion started by: presul
5 Replies
7. Shell Programming and Scripting
Hi All,
Can you please help me interpret the following command. Which I am not able to understand. Also can you please illustrate what it is used for.
perl -pi -e 's/\015//g' text_file.dat
Regards (3 Replies)
Discussion started by: rakesh.su30
3 Replies
8. Shell Programming and Scripting
I want to understand what does this command do:confused::confused: find . \( -type f -o -type 1 \) Plz someone explain me ! Thanks much in advance!! (2 Replies)
Discussion started by: sears
2 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends,
I need a small help in understanding the below sed command.
$ cat t4.txt
1 root 1 58 0 888K 368K sleep 4:06 0.00% init
1 root 1 58 0 888K 368K sleep 4:06 0.00% init last
$ sed 's/*$//' t4.txt
1 root 1 58 0 888K ... (3 Replies)
Discussion started by: forroughuse
3 Replies
10. Shell Programming and Scripting
Hello
I am working on a Change request and Stuck at a point. The below awk command is used in the function.
float_test ( ) {
echo | awk 'END { exit ( !( '"$1"')); }'
}
I understand that awk 'END' is used to add one line at the end and exit is used to end the script with an error... (4 Replies)
Discussion started by: rahul2662
4 Replies
LEARN ABOUT OSF1
rad_fork
rad_fork(3) Library Functions Manual rad_fork(3)
NAME
rad_fork - Creates a new process on a Resource Affinity Domain (libnuma library)
SYNOPSIS
#include <numa.h>
pid_t rad_fork(
radid_t radid,
ulong_t flags );
PARAMETERS
Identifies a Resource Affinity Domain (RAD) on which to allocate data and schedule threads for a new process. Specifies options (a bit
mask) that affect the attachment or binding operation. See DESCRIPTION for details.
DESCRIPTION
The rad_fork() function behaves the same as nfork() when the latter specifies a resource type of R_RAD and a resource descriptor that
points to a RAD set containing a single RAD identifier. For a description of this behavior, refer to the description of the R_RAD resource
type in nfork(3).
The following option is specified for the flags argument: This option specifies that any processes later forked by the specified process
will not inherit the parent's RAD assignment.
By default, any child processes will be assigned to the same home RAD as their parent process, and will be attached or bound to that
RAD if the parent was attached or bound.
RETURN VALUES
Success (returned to the child process). In this case, the function also returns the process ID of the child process to the parent process.
The child process and all of its data structures are allocated on the RAD specified by the radid argument. In addition, the initial
thread of the child process is sceduled on one of the CPUs in the specified RAD. Failure (returned to the parent process). In this
case, no child process is created and the function sets errno to indicate the error.
ERRORS
The limit on the total number of processes executing for a single user would be exceeded. This limit can be exceeded by a process with
superuser privilege. The radid argument specifies an invalid RAD identifier. There is insufficient memory to create this process.
SEE ALSO
Functions: nfork(3), nloc(3), numa_intro(3), radsetops(3)
Files: numa_types(4)
rad_fork(3)