Subject: Re: kill in bash script
To: Carlo Smith <postfix2002@hotmail.com>
From: Daniel Eggert <danieleggert@mac.com>
List: netbsd-help
Date: 11/13/2002 07:45:55
Try
   ps -aux | grep myservice
where you replace myservice with the process name. Check 'man ps'.

Then use kill.

/Daniel

On onsdag, nov 13, 2002, at 07:43 Europe/Copenhagen, Carlo Smith wrote:

> Working on a bash script to restart a service when needed but now need 
> to kill a process that doesn't have a pid file (kill -HUP cat xxx.pid)
>
> How do i go about this ?
>
>
>
>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
>