- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: check program time
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
Discussions
Discussions
Forums
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
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
тАО05-13-2005 02:11 AM
тАО05-13-2005 02:11 AM
check program time
Sometimes, few of their programs "runaway" or were loop inside in Unix. then later those useless processes to the top of other running programs by different users.
Users use top to find out those runaway processes running. But our SA hope know those processes as early as we can.
I tried to time command to find them (runaway processes) in early stage. For example, find the processes stay alive 5 minutes long.
Does any one know how to get a process 5 minutes long command. I hope that I could put them in script, try to send me a email if a assigned time broken.
Thanks,
Bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 02:20 AM
тАО05-13-2005 02:20 AM
Re: check program time
UNIX95= ps -eo pid,etime,comm | grep procname
The format of the etime parameter is:
DAYS-HOURS:MINUTES:SECONDS
You can use this to check for MINUTES > 5
- Tags:
- PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 02:23 AM
тАО05-13-2005 02:23 AM
Re: check program time
UNIX95= ps -eo pid,etime,comm | awk -F: '$2 >= 5 && /procname/'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 03:10 AM
тАО05-13-2005 03:10 AM
Re: check program time
`ps -eo pid,etime,comm` does not work in HP-UX, yet.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 03:35 AM
тАО05-13-2005 03:35 AM
Re: check program time
Below part work for Linux
ps -eo pid,etime,comm | awk -F: '$2 >= 5 && /bonobo-activati/'
Thank yopu very much
- Tags:
- awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2005 04:11 AM
тАО05-20-2005 04:11 AM