- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how long has the process been running so far?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 07:24 AM
03-14-2006 07:24 AM
how long has the process been running so far?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 07:36 AM
03-14-2006 07:36 AM
Re: how long has the process been running so far?
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 07:57 AM
03-14-2006 07:57 AM
Re: how long has the process been running so far?
glance or ps or even top will give you the start time of the process.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 08:19 AM
03-14-2006 08:19 AM
Re: how long has the process been running so far?
Using the XPG4 (UNIX95) behavior of the 'ps' command offers the time in format [dd-]hh:mm:ss. For example:
# UNIX95= ps -e -o pid,time,etime,comm
...or for a specific pid:
# UNIX95= ps -p 5678 -o pid,time,etime,comm
Note the space (blank) after the UNIX95= . This keeps the option armed only for the commandline in question.
See the manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 10:59 AM
03-14-2006 10:59 AM
Re: how long has the process been running so far?
Marlou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 02:56 PM
03-14-2006 02:56 PM
Re: how long has the process been running so far?
Use ps command for this.
Ex:
ps -fu < user-id >
will display something like;
UID PID PPID C STIME TTY TIME CMD
rtp40 8003 7631 0 09:21 pts/0 00:00:00 su - rtp40
Here, fifth column is the process starting time, you can use awk to manipulate the time, how long the process is running.
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:01 PM
03-14-2006 03:01 PM
Re: how long has the process been running so far?
You can use ps command as;
#ps -e -o etime
This will list out the elapsed time of all process.
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:10 PM
03-14-2006 03:10 PM
Re: how long has the process been running so far?
UNIX95= ps -ef -o pid,comm,etime,time
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:24 PM
03-14-2006 04:24 PM
Re: how long has the process been running so far?
Hi Hanry,
#ps -ef o stime
will display the start time of the process
#ps -ef o etime
will display the elapsed time of the prosess
you can use grep along with this to get the requied process stats.
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 04:25 PM
03-14-2006 04:25 PM
Re: how long has the process been running so far?
Hi Hanry,
#ps -e o stime
will display the start time of the process
#ps -e o etime
will display the elapsed time of the prosess
you can use grep along with this to get the requied process stats.
Regards,
Siva.