Or you can use
killall -HUP processname
This way you do not have to look up the process id with ps -ef each time
you want to kill something like inetd or other process where you already
know the name.
Tom
Ken Wilson wrote:
>
> The typical command for killing something from the command line is
>
> kill -9 <pid>
>
> You will need to know the program id to shut it down this way. As you
> are already using kvoicecontrol to start the programs you could have it
> get the pid for each program when it does and store them in an array.
> It could then run through the array shutting them down later.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sevatio Octavio
> Sent: Sunday, March 19, 2000 8:10 PM
> To: [EMAIL PROTECTED]
> Subject: [expert] How To Kill An Application From Command Line?
>
> Is there a general rule for killing an application from the command
> line? For example, I'm using kvoicecontrol to activate programs
> and I would like to tell it to shutdown the programs also.
>
> Thanks
> Seve