03-20-2008
List Process with their Status.
Hi all,
How can I get the list of all the processes that are either Orphan or Zombie or Running or Ended or Stopped ?
Please suggest !!
Thanks.
Varun
![Thumbsup Smilie](https://www.unix.com/images/smilies/thumb.gif)
10 More Discussions You Might Find Interesting
1. AIX
On AIX 5.2, I use "ps -ef " command to display the process status, the field of command looks like: , the detailed contents are:
# ps -ef |grep rtesfmrt
Display:
osa 32455 1 0 18:20 - 1:57
The origianl format shoud be:
osa 32455 1 0 18:20 - 1:57 ... (2 Replies)
Discussion started by: Frank2004
2 Replies
2. UNIX for Advanced & Expert Users
Hi all,
How can a process be aware of the signals it handles. I looked at available signal API, but couldn't find any help.
If a process defines it own handler for a signal, the default handler for that signal becomes overridden.
I am interested in getting to know the... (2 Replies)
Discussion started by: bluehive
2 Replies
3. Programming
hello everybody!!
i want to post a question!
is there any way to get process status using C commands?
To be more specific, i want to know whether a process is running or is stop or killed.
thanks in advance! (3 Replies)
Discussion started by: nicos
3 Replies
4. Shell Programming and Scripting
Hi,
I am executing the command: "./opmnctl status" to get the status of the processes in the instance. There are totally 5 processes that are avaialble, out of which 3 are "Alive" and 2 are "Down". How can I use the IF loop to get the status and echo it??
For instance I want to run a check... (8 Replies)
Discussion started by: yoursdavinder
8 Replies
5. UNIX for Advanced & Expert Users
All,
I have fair amount of knowledge about shell scripting, but only liitle on system administration.
I would like to know how to analyze whether the particular linux process is alive or not ? If it is alive, will it affect the performace of other process ?.
Also is it still consuming... (1 Reply)
Discussion started by: apsprabhu
1 Replies
6. Shell Programming and Scripting
Hi we have weblogic deployed under Linux Enterprise 5 .
Now i want to write a script that checks if weblogic is running or not
I have found that weblogic uses Java as process .
Can i do this way :
my Script File :
Echo Checking Status
if
then
echo Server Running
else
echo... (2 Replies)
Discussion started by: Ravi Pavanv
2 Replies
7. Shell Programming and Scripting
Hi,
I have a cron job which runs every ten minutes, now i hav to check the process whether it is running or not only once and then this should be sent to a log file..
crontab :
00,10,20,30,40,50 * * * * a
process check
ps = 'ps -ef |grep a '
if
then
echo " Success" >... (3 Replies)
Discussion started by: NehaKrish
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have run a shell script as a background process using 'nohup' command. I want to see the process id of this, so that I will be able to kill it later on when required.
I tried to collect these details using 'ps' command and could not view this information.
How do we get this... (5 Replies)
Discussion started by: Dev_Dev
5 Replies
9. UNIX for Dummies Questions & Answers
how can I learn the status of a process (sleeping, running or ready.) (2 Replies)
Discussion started by: merturk
2 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
Have a query
How to check for a process and if down start it , try if for 2 times and its not starting don't do it
My code is working to some extent but while starting try starting both times.
Please advise , whats wrong here ?
if you have any other approach please do share.
My... (1 Reply)
Discussion started by: abhaydas
1 Replies
LEARN ABOUT HPUX
poolbind
poolbind(1M) poolbind(1M)
NAME
poolbind - bind processes, tasks, or projects or query binding of processes to resource pools
SYNOPSIS
/usr/sbin/poolbind -p poolname [ -i idtype] id...
/usr/sbin/poolbind -q pid...
/usr/sbin/poolbind -Q pid...
The poolbind command allows an authorized user to bind zones, projects, tasks, and processes to pools. It can also allow a user to query a
process to determine which pool the process is bound to.
The following options are supported:
-i idtype
This option, together with the idlist arguments, specifies one or more processes to which the poolbind command is to apply. The inter-
pretation of idlist depends on the value of idtype. The valid idtype arguments and corresponding interpretations of idlist are as fol-
lows:
pid
idlist is a list of process IDs. Binds the specified processes to the specified pool. This is the default behavior if no idtype is
specified.
taskid
idlist is a list of task IDs. Bind all processes within the list of task IDs to the specified pool.
projid
idlist is a list of project IDs. Bind all processes within the list of projects to the specified pool. Each project ID can be spec-
ified as either a project name or a numerical project ID. See project(4).
zoneid
idlist is a list of zone IDs. Bind all processes within the list of zones to the specified pool. Each zone ID can be specified as
either a zone name or a numerical zone ID. See zones(5).
-p poolname
Specifies the name of a pool to which the specified zone, project, tasks, or processes are to be bound.
-q pid ...
Queries the pool bindings for a given list of process IDs. If the collection of resources associated with the process does not corre-
spond to any currently existing pool, or if there are multiple pools with the set of resources that the process is bound to, the query
fails for that particular process ID.
-Q pid ...
Queries the resource bindings for a given list of process IDs. The resource bindings are each reported on a separate line.
Example 1: Binding All Processes
The following command binds all processes in projects 5 and 7 to the pool web_app:
example# /usr/sbin/poolbind -p web_app -i projid 5 7
Example 2: Binding the Running Shell
The following command binds the running shell to the pool web_app:
example# /usr/sbin/poolbind -p web_app $$
Example 3: Querying the Pool Bindings
The following command queries the bindings to verify that the shell is bound to the given pool:
example# /usr/sbin/poolbind -q $$
Example 4: Querying the Resource Bindings
The following command queries the bindings to verify that the shell is bound to the given resources:
example# /usr/sbin/poolbind -Q $$
The following exit values are returned:
0 Successful completion.
1 Requested operation could not be completed.
2 Invalid command line options were specified.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpool |
+-----------------------------+-----------------------------+
|Interface Stability | See below. |
+-----------------------------+-----------------------------+
The invocation is Evolving. The output is Unstable.
pooladm(1M), poolcfg(1M), libpool(3LIB), project(4), attributes(5), zones(5)
System Administration Guide: N1 Grid Containers, Resource Management, and Solaris Zones
3 Feb 2005 poolbind(1M)