Re: kill process using job
- From: "Janis" <janis_papanagnou@xxxxxxxxxxx>
- Date: 12 Apr 2007 06:53:26 -0700
On 12 Apr., 15:33, SiKing <nos...@xxxxxxxxxxxxx> wrote:
urram...@xxxxxxxxx wrote:
i
want kill process
The (really) long way:
ps -ef | grep listener | grep -v grep | awk '{print $2}' | xargs kill
If you use awk in the pipeline there's no need for two additional grep
processes; awk can do that.
Janis
The (not so) long way:
ps -ef | grep '[l]istener' | awk '{print $2}' | xargs kill
The short way (if installed):
pkill -f listener
HTH.
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE d+(-) s+: a@ C+ ULAHS++$ P- L+>++ E--- W++ N++ o !K w--(+) O- M?>+ V? PS+
PE+(++) Y+ PGP- t+ 5 X R !tv b+ DI(+) D G e++ h---- r+++@ y++++
------END GEEK CODE BLOCK------
.
- Follow-Ups:
- Re: kill process using job
- From: SiKing
- Re: kill process using job
- References:
- kill process using job
- From: urramana
- Re: kill process using job
- From: SiKing
- kill process using job
- Prev by Date: Re: Need help with sed/awk cmd to insert a string in a line
- Next by Date: Re: THX!
- Previous by thread: Re: kill process using job
- Next by thread: Re: kill process using job
- Index(es):
Relevant Pages
|