LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2010, 08:31 PM   #1
vaporizel
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware 10.0
Posts: 23

Rep: Reputation: 0
ps ax with execution time?


hello,i know using
Code:
ps ax | grep php
i can retrieve processing with string "php", but how i can see its execution time, how long that php script running? (like app blahblah executed for 5 minutes)

Last edited by vaporizel; 11-14-2010 at 08:45 PM.
 
Old 11-14-2010, 09:09 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What you want is in the Time column, right?
 
Old 11-14-2010, 09:45 PM   #3
vaporizel
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware 10.0
Posts: 23

Original Poster
Rep: Reputation: 0
ah thanx for your reply, i found it now

Code:
ps axo pid,etime,args
etime format = elapsed time

Code:
  PID     ELAPSED COMMAND
    1    01:53:06 init [3]
    2    01:53:06 [migration/0]
    3    01:53:06 [ksoftirqd/0]
    4    01:53:06 [watchdog/0]
    5    01:53:06 [events/0]
    6    01:53:06 [khelper]
    7    01:53:06 [kthread]
   10    01:53:06 [kblockd/0]
   11    01:53:06 [kacpid]
   47    01:53:06 [cqueue/0]
   50    01:53:06 [khubd]
   52    01:53:06 [kseriod]
  114    01:53:05 [pdflush]
  115    01:53:05 [pdflush]
  116    01:53:05 [kswapd0]
  117    01:53:05 [aio/0]
  269    01:53:03 [kpsmoused]
  298    01:53:02 [ata/0]
  299    01:53:02 [ata_aux]
  304    01:53:02 [kstriped]
  313    01:53:02 [ksnapd]
  324    01:52:42 [kjournald]
  350    01:52:16 [kauditd]
  383    01:52:15 /sbin/udevd -d
 1171    01:52:05 [kmpathd/0]
 1172    01:52:05 [kmpath_handlerd]
 1195    01:52:04 [kjournald]
 1745    01:51:53 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid eth0
.................
............
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Execution Time Sanjib_Sur Linux - Newbie 3 12-02-2008 01:20 PM
compute execution time raedbenz Linux - Software 2 07-15-2008 12:26 PM
I want to know the program execution time daggulasreedhar Programming 6 03-15-2007 04:07 AM
commnad time execution caprianking2002 Linux - General 2 06-27-2006 03:01 AM
how to [time] the execution hq4ever Linux - General 8 07-03-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration