Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jeff Denham <jdenham@allaire.com>
Subject: Re: killing a process by name?
Date: 1999/06/09	[thread overview]
Message-ID: <375E6296.57AAAE0C@allaire.com> (raw)
In-Reply-To: 375d6a41.14695581@news.aurora.edu

Christopher Kolar wrote:

> Hello everyone.  This is probably a basic question, but I have not
> found the solution yet so I thought I would float it.  I have a host
> running OSF 4.0d.  After everyone leaves for the day I am going to
> have cron start a program "foo".  Foo should run until midnight, when
> it needs to be killed so that out nightly backups can happen.
>
> Problem is that: a) foo has no -kill or similar tag; b) foo does not
> drop the process number into a pid file that can be piped into a kill
> command.
>
> So my question, is ther a simple way to set up a shell script that
> cron can call at midnight that  will grep "foo" out of the ps command,
> and then kill -PID for foo?  I am not much of a shell script
> programmer, and only play a system administrator on TV, so those are
> two strikes against me.  Any help or pointers to the right resources
> would be much appreciated.

Well, it's really too bad that this Compaq Unix thing doesn't
have a decent proc tools offering, like Solaris 7 does.
There you can just use the pkill command to select
processes by name using regular expression matching
and send them the signal of your choice.

Shame on you Compaq!

__________________________________________________
Jeff Denham (jdenham@allaire.com)

Allaire Corp:  Resource-management software
for building and managing fast, reliable web sites
See us at http://www.allaire.com and http://www.brighttiger.com

125 Nagog Park
Acton, MA 01720
Phone: (978) 263-5455 x177
Fax:   (978) 263-5547

;^)




  parent reply	other threads:[~1999-06-09  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-08  4:00 killing a process by name? Christopher Kolar
1999-06-08  4:00 ` Serguei Patchkovskii
1999-06-09  4:00 ` Javier de Burgos
1999-06-09  4:00 ` Jeff Denham [this message]
1999-06-16  4:00   ` Tim Mooney
1999-06-16  4:00     ` Jeff Denham
1999-06-09  4:00 ` Adam Price
1999-06-10  4:00   ` Bruno KRINER
1999-06-09  4:00 ` Mark Lambert
1999-06-09  4:00   ` Paul David Fardy
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