Sponsored Content
Full Discussion: How to choose the RIGHT PID?
Top Forums UNIX for Dummies Questions & Answers How to choose the RIGHT PID? Post 302842149 by Yoda on Thursday 8th of August 2013 01:24:51 PM
Old 08-08-2013
Or use pkill

First of all run pgrep and verify if you are getting the correct PID:
Code:
pgrep -U cs113 sshd

If the PID is correct, then use pkill:
Code:
pkill -U cs113 sshd

 

7 More Discussions You Might Find Interesting

1. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

2. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

3. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

4. Programming

GCC: Choose my own linker

Hi, I do not use the default linker, and instead us another one and pass this argument -Wl,--dynamic-linker=<path to linker> to gcc when compiling. However, what happens if the linker is not under /lib and /lib64 and I am not able to create a symlink to the linker in /lib or /lib64 due to no... (2 Replies)
Discussion started by: Shompis
2 Replies

5. Shell Programming and Scripting

choose y or n

Hi, I have written a choice based shell script some thing like this: if (y) execute code .... fi else if(n) terminating the problem with the above scripting is it will work as far as the options are y or n. but i want to reiterate the same code when the user inputs something else... (1 Reply)
Discussion started by: sunrexstar
1 Replies

6. What is on Your Mind?

Which Tablet to Choose?

Currently in the process of looking for a tablet. Which one is best? Thanks Benjamin Mauerberger (9 Replies)
Discussion started by: hlinks12
9 Replies

7. UNIX for Beginners Questions & Answers

Which Product to Choose?

Okay, I have an Asus A8NSLI board with an Athlon 64 and I dunno, maybe 8gig Ram and Windows has crashed for the last time so I've finally had enough and I'll make it a Unix machine. I have a new 1Tera drive and I'm all set to go. Which brand of Unix/Linux can you advise me to go for? The... (3 Replies)
Discussion started by: abrogard
3 Replies
process_id_min(5)						File Formats Manual						 process_id_min(5)

NAME
process_id_min - specify a minimum value for process IDs (PIDs) VALUES
Failsafe Default Minimum Maximum must be less than or equal to If the difference between and inclusive is less than is effectively limited to this difference. DESCRIPTION
The tunable specifies the minimum process ID (PID) value to generate for new processes. It allows application developers to duplicate an environment where PID values are large for the purpose of software validation. This tunable is primarily intended for development environments. Who is Expected to Change This Tunable? Anyone interested in software program validation in an environment where PIDs have large values. Restrictions on Changing Changes to the tunable are effective immediately. However, any existing processes and their PIDs are not changed. It is recommended that the system be rebooted after specifying this tunable so that all PIDs in the system will have values in the selected range. When Should the Value of This Tunable Be Raised? Raise this tunable to validate software for tolerance of large PID values in a development environment. What Are the Side Effects of Raising the Value? If the difference between and is less than the number of processes allowed to exist simultaneously will be lower than the value of When Should the Value of This Tunable Be Lowered? Lower this tunable when the system is meant to be moved from a development to a production environment. What Are the Side Effects of Lowering the Value? If the difference between and is less than the number of processes allowed to exist simultaneously will be lower than the value of What Other Tunable Values Should Be Changed at the Same Time? It may be desirable to change The tunable should, ideally, be set for the maximum value when validating software which uses PIDs. When changing it is recommended that the system be rebooted to ensure all processes have PIDs within the desired range. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. The HP-UX kernel may silently round the selected values for and/or (for example, to the nearest power of 2) in order to accommodate the PID generation algorithm. It is recommended that validation of software be carried out with the largest configurable value (1,073,741,567) for the tunable, in con- junction with the tunable set to something of the same magnitude (for example, 1,000,000,000). The manpage for (see process_id_max(5)) should be consulted for information about potential application issues with large PID values. Because session IDs (SIDs) and process group IDs (PGIDs) are the same as the process ID of the session or group leader, an increase in the minimum PID also increases the minimum SID and PGID. The system may assign process ID values less than to certain special system processes. Booting the system with set to a non-zero value may cause the initialization process (aka init) to have a PID of something other than 1. However, most system utilities and commands will, by default, report the value of the initialization process's PID as 1. For example, returns 1 if the caller's parent is the initialization process, regardless of its actual PID. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
init(1M), fork(2), getppid(2), nproc(5), process_id_max(5). whitepaper, available on Tunable Kernel Parameters process_id_min(5)
All times are GMT -4. The time now is 05:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy