Hi Gurus,
Our ftp server has been very busy after it is mirrowing some very solicited
software in the net. A bunch of anonymous ftp processes are not concluded
due to high traffic and stay filling many lines if we give
ps axu|grep ftp
We would like to kill such processes through a script in crontab, when older
than a certain number of hours. We know how to print the time they have
started, with, for instance,
ps aux | grep ftp | grep -v grep | awk '{print $10}'
but do not know how to achieve what we wish, i. e., compare it with the
current time and kill the process if it older then, say, 8 hours.
Any hints ?
TIA,
Oyanarte Portilho
Institute of Physics
University of Brasilia, Brazil
Received on Wed Oct 03 2001 - 14:32:49 NZST