voltaire
0 pts. | Aug 5 2004 12:07PM GMT
(yesterday I was a bit in a hurry…)
This will give you exactly the list of all oracleprod processes running for 3 or more days (respect the spaces embedded in the egrep expression):
ps -A -o user,pid,etime | grep oracleprod | egrep -v ” 1-| 2-”
or, if you want only the list of PIDs:
ps -A -o user,pid,etime | grep oracleprod | egrep -v ” 1-| 2-” | cut -c10-15






