From: Oyanarte Portilho <portilho () fis ! unb ! br>
To: tru64-unix-managers
Subject: h
Date: Wed, 03 Oct 2001 14:34:13 +0000 [thread overview]
Message-ID: <102653641821609.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~2001-10-03 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox