etime - get processes running for more than 30 days | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

etime - get processes running for more than 30 days

AIX


Tags
result, script

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-22-2010
chipahoys chipahoys is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 14 September 2010, 7:20 AM EDT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
etime - get processes running for more than 30 days

In AIX I am trying to get the processes ran by user declan using the following format:


Code:
 
ps -aef -o user,pid,etime,args | grep declan

Then I get a result similar to (for example):


Code:
declan  103264 123-12:47:33 /applications/apache/1.3.39.0/bin/httpd -d /var/applications/apache/www1

I know that the 123-12:47:33 follows the format days-hh:min:sec when etime is used .

Can you help me with the script to check for processes running for more than 30 days old using the data from the result of the first command above?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help in running two processes in parellel ss3944 Shell Programming and Scripting 7 01-18-2010 01:57 PM
Need help with running processes script Ikebana Shell Programming and Scripting 5 10-05-2009 08:43 PM
Need help with running processes script Ikebana Shell Programming and Scripting 2 10-05-2009 07:26 PM
Need to kill processes that are older than 3 days Sriranga Shell Programming and Scripting 3 07-10-2009 12:55 AM
how to find all processes that are running speedieB UNIX for Dummies Questions & Answers 9 07-12-2006 06:04 AM



All times are GMT -4. The time now is 04:34 PM.