Mel's right, of course. Even easier is to use "killall", which kills
processes by name instead of pid. Guess I'm getting absent minded <sigh> ....
>From: "Mel Boyce" <[EMAIL PROTECTED]>
>To: "'Ray Olszewski'" <[EMAIL PROTECTED]>
>Subject: RE: Scheduling programs for specific times, how is it done?
>Date: Fri, 26 Feb 1999 14:54:38 +1300
>--> Subject: Re: Scheduling programs for specific times, how is it done?
>-->
>--> Well, one way would be the following:
>-->
>--> 1. Start the program the normal way in crond.
>-->
>--> 2. To stop it, write a script that looks for the program
>--> via ps, gets its
>--> pid that way, then kills the pid. Run this as a crond job
>--> at the stop time.
>
>you could also use pidof.
>pidof returns the PID of the supplied program, ie
>
> linux:~# pidof diald
> 119
> linux:~#
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
762 Garland Drive
Palo Alto, CA 94303-3603
650.321.3561 voice 650.322.1209 fax [EMAIL PROTECTED]
----------------------------------------------------------------