Info about ps command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Info about ps command
# 1  
Old 09-22-2008
Info about ps command

Hi all,

When a process is hung in unix and when we list the process using "ps" command, then does the elapsed timeELAPSED column time display the time elapsed since the process started to the time till the "ps"command was called. Or does the elapsed time column display only the time since the process was started to the time till it was active
# 2  
Old 09-22-2008
elapsed time is the wall clock time the process has been out there up until now.
# 3  
Old 09-22-2008
I had that question too. Referred "man ps" and found it there. I recommend you have a look at it too.
It's something about the percentage process run time to the cpu time taken by the process.
# 4  
Old 09-23-2008
hi ,

Thanks for the replies, but really none of you answered my question about the status of elapsed time.. after a process is hung. Although what i infer from the replies is that it keep on incrementing till the process is dead. Please correct me if i am wrong.

I referred to the manual but was not able to gather much info regarding this
# 5  
Old 09-23-2008
You can answer your own question

Create a process, send kill -STOP to the process - it is now hung.
Check the elapsed time.

Come back five minutes later, check the elapsed time again.

The reason for no perfect answer is there are three distinct versions of ps out there. They all behave a little differently, especially on older systems.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Printing more info than find command gives out

Hi, I am trying to find files that are more than a gig with this command find . -size +1073741823c and it just gives me the names of the files. How do i get it to give me the actual size of the files too? ---------- Post updated at 09:41 AM ---------- Previous update was at 09:37 AM... (2 Replies)
Discussion started by: LilyClaro
2 Replies

2. AIX

To get only the cpu info from the topas command terminal

To get only the cpu info from the topas command terminal. CPU User% Kern% Wait% Idle% Physc Entc ALL 2.3 4.4 0.0 93.3 0.07 7.7 I tried some thing like this but did not work topas << done grep "ALL" q done Can someone help me in this. (5 Replies)
Discussion started by: rpm120
5 Replies

3. UNIX for Dummies Questions & Answers

Extracting specific info finger command

how to extract user machine name for current terminal using finger command below command gives machinename for all session , is it possible to filter it to only currernt terminal ? finger -b -p $LOGNAME | grep from (12 Replies)
Discussion started by: lalitpct
12 Replies

4. UNIX for Advanced & Expert Users

Unable to display directory info with ps command

Hello, I start an adapter using the following command - nohup ./start_embargoAdapter >/dev/null 2>&1 & and when I do the following, I can see: /export/home/xxxxx> ps -ef | grep embargo xxxxx 28086 20761 0 23:23:29 pts/7 0:00 grep embargo xxxxx 8866 1 0 Oct 06 ? 0:00... (2 Replies)
Discussion started by: samjna
2 Replies

5. SuSE

my SQL Info command

Is there a command that will output all mysql details. eg. host name, port etc? Cheers Paul (1 Reply)
Discussion started by: runnerpaul
1 Replies

6. Shell Programming and Scripting

Generic command for CPU info

Dear all, Is there any generic command working on all Unix listing the CPU of a server? I found different command line per OS but I am looking for a more generic one. Thanks for your answer. (5 Replies)
Discussion started by: sgoiffon
5 Replies

7. UNIX for Dummies Questions & Answers

Passing info from other file into command

I created file called "tape_name" which contains tape_mon_A="TAPE_MON_A" tape_tue_A="TAPE_TUE_A" tape_wed_A="TAPE_WED_A" tape_thr_A="TAPE_THR_A" tape_mon_B="TAPE_MON_B" tape_tue_B="TAPE_TUE_B" tape_wed_B="TAPE_WED_B" tape_thr_B="TAPE_THR_B" I created test script as follow ... (4 Replies)
Discussion started by: Paul.S
4 Replies

8. UNIX for Dummies Questions & Answers

Extracting specific info from finger command

Hello all, my unix is bash based and the finger command output is: Login Name Tty Idle LoginTime Office amos.john Amos John pts/26 1 Dec 5 16:18 (77.100.22.07) What am trying to achieve is extract the Login (amos.john) and Name (Amos John) from this output without using awk or sed. ... (1 Reply)
Discussion started by: franny
1 Replies

9. UNIX for Dummies Questions & Answers

Info about col command

Hello every1. Can any1 help me with the col command. Wat is a reverse line feed. Which kind of files u need to use the col command. (2 Replies)
Discussion started by: rahulrathod
2 Replies

10. Solaris

Command to require OS info

Hi, I am new to UNIX environment. Can anybody tell me how can I check whether my OS is 32bit or 64bit? Regards, Malay Mary (4 Replies)
Discussion started by: malaymaru
4 Replies
Login or Register to Ask a Question