From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653641821609.tru64-unix-managers.marc@archive.invalid> From: Oyanarte Portilho Date: Wed, 03 Oct 2001 14:34:13 +0000 To: tru64-unix-managers Subject: h X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653641821609 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