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:
ps -aef -o user,pid,etime,args | grep declan
Then I get a result similar to (for example):
declan 103264 123-12:47:33 /applications/apache/22.214.171.124/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?
|Thread Tools||Search this Thread|
|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|