Sponsored Content
Full Discussion: processes
Top Forums UNIX for Dummies Questions & Answers processes Post 26207 by mma_buc_98 on Tuesday 13th of August 2002 02:54:03 PM
Old 08-13-2002
processes

What command string will locate ONLY the PID of a process and ouput only the number of PID of the process?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

co-processes

Is it possible to have a main script (i will call it main.ksh) that executes say, 4 other scripts (sub_prog_1.ksh, sub_prog_2.ksh etc..) from within this main.ksh (simultaneously/in parallel), have them run in the background and communicate back to main.ksh when complete? My guess is to use... (1 Reply)
Discussion started by: google
1 Replies

2. Shell Programming and Scripting

I need some example of Co-Processes

I want to know how to work the Co-Processes in kornshell scripts. So, I very need some script about Co-Processes! thanks ...:) (3 Replies)
Discussion started by: javalee
3 Replies

3. Filesystems, Disks and Memory

processes

write a program create two processes to run a for loop which adds numbers 1 to n , say one process adds odd numbers and other adds even numbers (1 Reply)
Discussion started by: jayaram_miryabb
1 Replies

4. UNIX for Dummies Questions & Answers

Processes

Can someone tell how to find out how long a process has been running? I want to find something that is usually there that the paging system can check on. Thanks (4 Replies)
Discussion started by: Beetlejuice
4 Replies

5. Shell Programming and Scripting

Processes

I have a file like this. No. State Query Times User Processed Syslog 1 ready idle 973s 0 /Application/ugsvols/bldata01/logs/imanscript1562.syslog 2 ready idle 803s 83997 13 /Application/ugsvols/bldata01/logs/imanscript1542.syslog 3 ready idle 2954s 106641... (17 Replies)
Discussion started by: Krrishv
17 Replies

6. UNIX for Advanced & Expert Users

Monitoring Processes - Killing hung processes

Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies)
Discussion started by: ukndoit
4 Replies

7. Solaris

Identifying and grouping OS processes and APP processes

Hi Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages. Any free tools or scripts to do this? Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies

8. UNIX for Dummies Questions & Answers

Processes

Hi all, I needed a little help. It's OS thing. Suppose I have 2 machine connect over a network, I will call my machines as M1and M2. If I copy a files from M1 to M2. What tasks are these two machine performing for copy to work. My assumption is that M1 is performing read action and... (1 Reply)
Discussion started by: vishwesh
1 Replies

9. Shell Programming and Scripting

Finding the age of a unix process, killing old processes, killing zombie processes

I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies

10. UNIX for Dummies Questions & Answers

processes

may i know a command to find processes not attached to a terminal?? (1 Reply)
Discussion started by: riya9
1 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 01:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy