tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* h
@ 2001-10-03 14:34 Oyanarte Portilho
  0 siblings, 0 replies; only message in thread
From: Oyanarte Portilho @ 2001-10-03 14:34 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-03 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-03 14:34 h Oyanarte Portilho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox