Subject: Re: kill in bash script
To: None <danieleggert@mac.com>
From: Carlo Smith <postfix2002@hotmail.com>
List: netbsd-help
Date: 11/13/2002 14:06:58
Thats the way to manualy find the pid and then kill it ... but how do I pick 
out the pid in a script?

-Carlo-

>
>Try
>   ps -aux | grep myservice
>where you replace myservice with the process name. Check 'man ps'.
>
>Then use kill.
>
>/Daniel
>
>
>>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 ?
>>


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail