KILLING OLD UNIX PROCESSES
Are there other date functions or methods can I use?
I can make a list of processes but how do I compare the date to kill those processes more than 3 days old.
This problem is occurring even though I have a regular cron job which kills sessions older than 2 days old in oracle. I am using 8.1.7.4 and Solaris 8.
This is where I got stuck.
curday=`date +%d`
month=`date|cut -d' ' -f2`
echo $month $curday
ps -ef|grep oracleprod | tr -s " " : | cut -d: -f3,6,7



