Search Results

Search: Posts Made By: Vinod
8,790
Posted By RavinderSingh13
Hello Vinod, When you see man page for ps...
Hello Vinod,

When you see man page for ps you see like.



So Rudi's code is actually comparing if a process is older then 7200 seconds which is 2 hours and if condition is TRUE it prints it...
8,790
Posted By MadeInGermany
I wonder what the -f does in conjunction with -o...
I wonder what the -f does in conjunction with -o ...
"etime" is standard. With an appropriate RE:
ps -eo pid,comm,etime | awk '$3~/^[2-9][0-9]*-/{print $1,$2,$3}'
8,790
Posted By RudiC
Try ps -efo pid,comm,etimes | awk '$NF >...
Try

ps -efo pid,comm,etimes | awk '$NF > 7200'
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy